size_max.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* size_max.h -- declare SIZE_MAX through system headers
  2. Copyright (C) 2005-2006, 2009-2017 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, see <http://www.gnu.org/licenses/>. */
  14. #ifndef GNULIB_SIZE_MAX_H
  15. #define GNULIB_SIZE_MAX_H
  16. /* Get SIZE_MAX declaration on systems like Solaris 7/8/9. */
  17. # include <limits.h>
  18. /* Get SIZE_MAX declaration on systems like glibc 2. */
  19. # if HAVE_STDINT_H
  20. # include <stdint.h>
  21. # endif
  22. /* On systems where these include files don't define it, SIZE_MAX is defined
  23. in config.h. */
  24. #endif /* GNULIB_SIZE_MAX_H */