From: Alan Trulock Date: Thu, 4 Aug 2011 14:07:21 +0000 (+0200) Subject: Don't use sdlmain in the pak tool X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb4a68f333c7e4d53dd5dc287a8f4790979d8610;p=quix0rs-blobwars.git 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. --- 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