From 5006663d193d1330822dd1c83f9a179f221dbc8b Mon Sep 17 00:00:00 2001 From: ac-stef Date: Thu, 24 Sep 2015 23:17:50 +0200 Subject: [PATCH] update VC project file and add workaround for missing C99 type uint64_t in VC2008 --- source/src/tools.h | 3 +++ source/vcpp/cube.vcproj | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/source/src/tools.h b/source/src/tools.h index aed5182d..75b965ce 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -846,6 +846,9 @@ inline char *newstringbuf(const char *s) { return newstring(s, MAXSTRLEN- inline void delstring(const char *s) { delete[] (char *)s; } #define DELSTRING(s) if(s) { delstring(s); s = NULL; } +#ifndef INT_LEAST64_MIN +typedef unsigned long long int uint64_t; +#endif const int islittleendian = 1; #ifdef SDL_BYTEORDER #define endianswap16 SDL_Swap16 diff --git a/source/vcpp/cube.vcproj b/source/vcpp/cube.vcproj index 30c15af3..5c920628 100644 --- a/source/vcpp/cube.vcproj +++ b/source/vcpp/cube.vcproj @@ -1352,6 +1352,26 @@ /> + + + + + + + + @@ -1401,6 +1421,26 @@ /> + + + + + + + +