Permalink
Browse files

Don't include malloc.h on Mac.

  • Loading branch information...
1 parent 385a99c commit 2f019b5f79a84093dcaa1d517167b4340b8da8e1 @stephank committed May 13, 2012
Showing with 8 additions and 4 deletions.
  1. +4 −2 SDLLaunch/Src/SDLLaunchPrivate.h
  2. +4 −2 UCC/Src/UCC.cpp
@@ -6,15 +6,17 @@ Revision history:
* Created by Brandon Reinhart.
=============================================================================*/
-#if WIN32
+#if defined(WIN32)
#include <windows.h>
#else
#include <errno.h>
#include <sys/stat.h>
#endif
#include <stdio.h>
#include <stdlib.h>
-#include <malloc.h>
+#if !defined(__APPLE__)
+ #include <malloc.h>
+#endif
#include <fcntl.h>
#include "SDL.h"
#include "Engine.h"
View
@@ -6,13 +6,15 @@ Revision history:
* Created by Tim Sweeney.
=============================================================================*/
-#if WIN32
+#if defined(WIN32)
#include <windows.h>
#else
#include <errno.h>
#include <sys/stat.h>
#endif
-#include <malloc.h>
+#if !defined(__APPLE__)
+ #include <malloc.h>
+#endif
#include <stdio.h>
// Core and Engine

0 comments on commit 2f019b5

Please sign in to comment.