summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-06 21:18:25 +0000
committerrubidium <rubidium@openttd.org>2007-03-06 21:18:25 +0000
commitb9b0edbec4dbe5a5db76c3ec56e1962130eade43 (patch)
tree196a30fbcb9e145ad69f2e213bc52d1ee6bb5aae /src/stdafx.h
parentac6c36f980135dcf445aab8afaddc313b0c4c8ef (diff)
downloadopenttd-b9b0edbec4dbe5a5db76c3ec56e1962130eade43.tar.xz
(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index c5371e40b..022ca61e5 100644
--- 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