From cb4a68f333c7e4d53dd5dc287a8f4790979d8610 Mon Sep 17 00:00:00 2001 From: Alan Trulock Date: Thu, 4 Aug 2011 16:07:21 +0200 Subject: [PATCH] Don't use sdlmain in the pak tool On Mac OS X, compiling pak from the command line works as expected but compiling in Xcode results in bus errors when running the program. By patching pak.h and linking only to libz within Xcode, pak compiles and runs as expected. --- src/pak.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pak.h b/src/pak.h index e74de8d..060fa88 100644 --- a/src/pak.h +++ b/src/pak.h @@ -21,3 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include "headers.h" +#ifdef FRAMEWORK_SDL +#undef main +#endif -- 2.39.5