File diff r14951:e24469d4e684 → r14952:14ece20bc0d1
src/stdafx.h
Show inline comments
 
@@ -255,51 +255,53 @@
 
		const char *FS2OTTD(const TCHAR *name);
 
		const TCHAR *OTTD2FS(const char *name);
 
		#define SQ2OTTD(name) FS2OTTD(name)
 
		#define OTTD2SQ(name) OTTD2FS(name)
 
	#else
 
		#define fopen(file, mode) fopen(OTTD2FS(file), mode)
 
		const char *FS2OTTD(const char *name);
 
		const char *OTTD2FS(const char *name);
 
		#define SQ2OTTD(name) (name)
 
		#define OTTD2SQ(name) (name)
 
	#endif /* WIN32 */
 
#endif /* STRGEN */
 

	
 
#if defined(WIN32) || defined(WIN64) || defined(__OS2__) && !defined(__INNOTEK_LIBC__)
 
	#define PATHSEP "\\"
 
	#define PATHSEPCHAR '\\'
 
#else
 
	#define PATHSEP "/"
 
	#define PATHSEPCHAR '/'
 
#endif
 

	
 
/* MSVCRT of course has to have a different syntax for long long *sigh* */
 
#if defined(_MSC_VER) || defined(__MINGW32__)
 
	#define OTTD_PRINTF64 "%I64d"
 
	#define OTTD_PRINTFHEX64 "%I64x"
 
	#define PRINTF_SIZE "%Iu"
 
#else
 
	#define OTTD_PRINTF64 "%lld"
 
	#define OTTD_PRINTFHEX64 "%llx"
 
	#define PRINTF_SIZE "%zu"
 
#endif
 

	
 
typedef unsigned char byte;
 

	
 
/* This is already defined in unix, but not in QNX Neutrino (6.x)*/
 
#if (!defined(UNIX) && !defined(__CYGWIN__) && !defined(__BEOS__) && !defined(__HAIKU__) && !defined(__MORPHOS__)) || defined(__QNXNTO__)
 
	typedef unsigned int uint;
 
#endif
 

	
 
#if defined(TROUBLED_INTS)
 
	/* NDS'/BeOS'/Haiku's types for uint32/int32 are based on longs, which causes
 
	 * trouble all over the place in OpenTTD. */
 
	#define uint32 uint32_ugly_hack
 
	#define int32 int32_ugly_hack
 
	typedef unsigned int uint32_ugly_hack;
 
	typedef signed int int32_ugly_hack;
 
#else
 
	typedef unsigned char    uint8;
 
	typedef   signed char     int8;
 
	typedef unsigned short   uint16;
 
	typedef   signed short    int16;
 
	typedef unsigned int     uint32;
 
	typedef   signed int      int32;