|
@@ -61,14 +61,14 @@
|
|
|
# include <malloc.h> // alloca()
|
|
|
# define NORETURN __declspec(noreturn)
|
|
|
# define FORCEINLINE __forceinline
|
|
|
# define inline _inline
|
|
|
# define CDECL _cdecl
|
|
|
# define NOT_REACHED() _assume(0)
|
|
|
# define snprintf _snprintf
|
|
|
# define vsnprintf _vsnprintf
|
|
|
int snprintf(char *str, size_t size, const char *format, ...);
|
|
|
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
|
|
|
# undef TTD_ALIGNMENT_4
|
|
|
# undef TTD_ALIGNMENT_2
|
|
|
# define GCC_PACK
|
|
|
#endif
|
|
|
|
|
|
// Windows has always LITTLE_ENDIAN
|
|
@@ -94,12 +94,16 @@ typedef unsigned int uint32;
|
|
|
#endif
|
|
|
|
|
|
// This is already defined in unix
|
|
|
#if !defined(UNIX) && !defined(__CYGWIN__)
|
|
|
typedef unsigned int uint;
|
|
|
#endif
|
|
|
// Not defined in QNX Neutrino (6.x)
|
|
|
#if defined(__QNXNTO__)
|
|
|
typedef unsigned int uint;
|
|
|
#endif
|
|
|
|
|
|
#ifndef __BEOS__
|
|
|
typedef signed char int8;
|
|
|
typedef signed short int16;
|
|
|
typedef signed int int32;
|
|
|
#ifndef __cplusplus
|
|
@@ -172,9 +176,10 @@ assert_compile(sizeof(uint8) == 1);
|
|
|
|
|
|
// take care of some name clashes on macos
|
|
|
#if defined(__APPLE__)
|
|
|
#define GetString OTTD_GetString
|
|
|
#define DrawString OTTD_DrawString
|
|
|
#define Random OTTD_Random
|
|
|
#define CloseConnection OTTD_CloseConnection
|
|
|
#endif
|
|
|
|
|
|
#endif // !defined(_STDAFX_H)
|