(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.

This commit is contained in:
rubidium 2007-03-06 21:18:25 +00:00
parent 621ea1d863
commit f1abcf0ff7
1 changed files with 8 additions and 2 deletions

View File

@ -8,8 +8,14 @@
* does not have stdint.h and apparently neither does MorphOS, so define
* INT64_MAX for them ourselves. */
#if !defined(_MSC_VER) && !defined( __MORPHOS__)
# define __STDC_LIMIT_MACROS
# include <stdint.h>
# if defined (SUNOS)
/* SunOS/Solaris does not have stdint.h, but inttypes.h defines everything
* stdint.h defines and we need. */
# include <inttypes.h>
# else
# define __STDC_LIMIT_MACROS
# include <stdint.h>
# endif
#else
# define INT64_MAX 9223372036854775807LL
#endif