mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-25 11:45:53 +01:00
Swap PLATFORM_* macros for standard ones in ecc
This simplifies the standalone CMakeLists.txt file arriving in the next commit. _WIN32 is defined by MVSC and the MinGW toolchain for all relevant Windows versions. We don't need to explicitly check for UNIX because it's the only non-Windows case we care about.
This commit is contained in:
parent
6087022b9c
commit
bd68934e32
|
@ -15,7 +15,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
|
||||||
|
|
||||||
/* rcg10042001 */
|
/* rcg10042001 */
|
||||||
#ifdef PLATFORM_WIN32
|
#ifdef _WIN32
|
||||||
#define alloca _alloca
|
#define alloca _alloca
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -21,11 +21,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifdef PLATFORM_WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#ifdef PLATFORM_UNIX
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user