mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +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 <stdarg.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
#ifdef PLATFORM_WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -38,12 +38,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include <search.h> // for qsort
|
#include <search.h> // for qsort
|
||||||
#include <float.h> // for FPU control
|
#include <float.h> // for FPU control
|
||||||
|
|
||||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* rcg10042001 !!! FIXME: Move these somewhere. */
|
/* rcg10042001 !!! FIXME: Move these somewhere. */
|
||||||
#if (defined PLATFORM_WIN32)
|
#if (defined PLATFORM_WIN32)
|
||||||
|
#include <malloc.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
#include <winsock2.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 <search.h> // for qsort
|
||||||
#include <float.h> // for FPU control
|
#include <float.h> // for FPU control
|
||||||
|
|
||||||
#if !defined(PLATFORM_MACOSX) && !defined(PLATFORM_FREEBSD)
|
|
||||||
#include <malloc.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PLATFORM_WIN32
|
#ifdef PLATFORM_WIN32
|
||||||
|
#include <malloc.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user