projects
/
quix0rs-blobwars.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df81633
)
Don't use sdlmain in the pak tool
author
Alan Trulock
<alan@trulock.org>
Thu, 4 Aug 2011 14:07:21 +0000
(16:07 +0200)
committer
Guus Sliepen
<guus@debian.org>
Thu, 4 Aug 2011 14:07:21 +0000
(16:07 +0200)
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
patch
|
blob
|
history
diff --git
a/src/pak.h
b/src/pak.h
index e74de8d2462c528e61c57ee026ab19ada8ea585b..060fa8871390272584f27e564bf6a4d30985d965 100644
(file)
--- 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 <dirent.h>
#include "headers.h"
+#ifdef FRAMEWORK_SDL
+#undef main
+#endif