(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
authorrubidium
Tue, 06 Mar 2007 21:18:25 +0000
changeset 6559 86175c4c421e
parent 6558 384bfec543ac
child 6560 ff59c862deae
(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
src/stdafx.h
--- a/src/stdafx.h	Tue Mar 06 21:14:48 2007 +0000
+++ b/src/stdafx.h	Tue Mar 06 21:18:25 2007 +0000
@@ -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