mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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
ac6c36f980
commit
b9b0edbec4
10
src/stdafx.h
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user