size_max.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /* size_max.h -- declare SIZE_MAX through system headers
  2. Copyright (C) 2005-2006, 2009-2012 Free Software Foundation, Inc.
  3. Written by Simon Josefsson.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU Lesser General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  15. #ifndef GNULIB_SIZE_MAX_H
  16. #define GNULIB_SIZE_MAX_H
  17. /* Get SIZE_MAX declaration on systems like Solaris 7/8/9. */
  18. # include <limits.h>
  19. /* Get SIZE_MAX declaration on systems like glibc 2. */
  20. # if HAVE_STDINT_H
  21. # include <stdint.h>
  22. # endif
  23. /* On systems where these include files don't define it, SIZE_MAX is defined
  24. in config.h. */
  25. #endif /* GNULIB_SIZE_MAX_H */