mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
621ea1d863
commit
f1abcf0ff7
|
@ -8,8 +8,14 @@
|
||||||
* does not have stdint.h and apparently neither does MorphOS, so define
|
* does not have stdint.h and apparently neither does MorphOS, so define
|
||||||
* INT64_MAX for them ourselves. */
|
* INT64_MAX for them ourselves. */
|
||||||
#if !defined(_MSC_VER) && !defined( __MORPHOS__)
|
#if !defined(_MSC_VER) && !defined( __MORPHOS__)
|
||||||
|
# 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
|
# define __STDC_LIMIT_MACROS
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# define INT64_MAX 9223372036854775807LL
|
# define INT64_MAX 9223372036854775807LL
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue