Changeset - r6233:ac74a3fd9e8a
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-03-06 21:18:25
rubidium@openttd.org
(svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h.
1 file changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)