mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-25 15:14:51 +01:00
Don't #include <malloc.h> on Linux, only on Windows
Linux, FreeBSD and OSX should use stdlib.h instead.
This commit is contained in:
parent
dc2c869cfc
commit
24dcb9cc4f
|
@ -21,7 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <stdarg.h>
|
||||
#include <math.h>
|
||||
|
||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
||||
#ifdef PLATFORM_WIN32
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -38,12 +38,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <search.h> // for qsort
|
||||
#include <float.h> // for FPU control
|
||||
|
||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
/* rcg10042001 !!! FIXME: Move these somewhere. */
|
||||
#if (defined PLATFORM_WIN32)
|
||||
#include <malloc.h>
|
||||
#include <conio.h>
|
||||
#include <crtdbg.h>
|
||||
#include <winsock2.h>
|
||||
|
|
|
@ -27,11 +27,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <search.h> // for qsort
|
||||
#include <float.h> // for FPU control
|
||||
|
||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_WIN32
|
||||
#include <malloc.h>
|
||||
#include <conio.h>
|
||||
#include <crtdbg.h>
|
||||
#include <winsock2.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user