mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)
Fix warning in graph_gui.c with const problem
This commit is contained in:
13
stdafx.h
13
stdafx.h
@@ -121,14 +121,25 @@
|
||||
# define NOT_REACHED() _assume(0)
|
||||
# endif
|
||||
int CDECL snprintf(char *str, size_t size, const char *format, ...);
|
||||
#if _MSC_VER < 1400
|
||||
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap);
|
||||
#endif
|
||||
# undef TTD_ALIGNMENT_4
|
||||
# undef TTD_ALIGNMENT_2
|
||||
# define GCC_PACK
|
||||
#endif
|
||||
|
||||
// Needed for old PlatformSDK versions (e.g. VC6)
|
||||
#if defined(WIN32) && !defined(_WIN64) && !defined(WIN64)
|
||||
# ifndef _W64
|
||||
# define _W64
|
||||
# endif
|
||||
typedef _W64 int INT_PTR, *PINT_PTR;
|
||||
typedef _W64 unsigned int UINT_PTR, *PUINT_PTR;
|
||||
#endif
|
||||
|
||||
// Windows has always LITTLE_ENDIAN
|
||||
#if defined(WIN32) || defined(__OS2__)
|
||||
#if defined(WIN32) || defined(__OS2__) || defined(WIN64)
|
||||
#define TTD_LITTLE_ENDIAN
|
||||
#else
|
||||
// Else include endian[target/host].h, which has the endian-type, autodetected by the Makefile
|
||||
|
Reference in New Issue
Block a user