changeset 6233:44af8f27045c draft

(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
author rubidium <rubidium@openttd.org>
date Tue, 06 Mar 2007 21:18:25 +0000
parents 8f5f0fc38758
children 5790700fdbd5
files src/stdafx.h
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -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