From 37ecc2e8ff79bc97a2b8e7478cbed5df530b2a33 Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Tue, 20 Nov 2012 08:58:44 +0000 Subject: [PATCH] OSX/Mac buildfix changes to GBALink git-svn-id: https://svn.code.sf.net/p/vbam/code/branches/bgk-link@1149 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gba/GBALink.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gba/GBALink.cpp b/src/gba/GBALink.cpp index c121ed15..655392f8 100644 --- a/src/gba/GBALink.cpp +++ b/src/gba/GBALink.cpp @@ -1,9 +1,15 @@ // This file was written by denopqrihg // with major changes by tjm #include -#include #include +// malloc.h does not seem to exist on Mac OS 10.7 +#ifdef __APPLE__ +#include +#else +#include +#endif + #ifdef _MSC_VER #define snprintf _snprintf #endif