summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-12-09 13:07:21 +0000
committerbjarni <bjarni@openttd.org>2005-12-09 13:07:21 +0000
commit073aae307e4792f0afbf1c01a7f1b1640c08a1f0 (patch)
treef0d5922c98f436ad1347bb5af8afc4f6c06a8f0d
parent98ef748715887b45ee3004313c16690caf71c268 (diff)
downloadopenttd-073aae307e4792f0afbf1c01a7f1b1640c08a1f0.tar.xz
(svn r3275) -Fix: [OSX] removed libpng support and error dialogs from jaguar crosscompiles to fix crash
-rw-r--r--Makefile3
-rw-r--r--os/macosx/Makefile.setup2
-rw-r--r--stdafx.h2
-rw-r--r--unix.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 22496d41a..e6e1f6d93 100644
--- a/Makefile
+++ b/Makefile
@@ -518,6 +518,7 @@ ifdef OSX
ifdef JAGUAR
# ensure that changing libpathnames will not overwrite anything in the binary
LDFLAGS += -headerpad_max_install_names
+ CFLAGS += -DJAGUAR_CROSSCOMPILE
endif
ifndef DEDICATED
@@ -753,7 +754,9 @@ C_SOURCES += music/extmidi.c
endif
ifdef OSX
+ifndef JAGUAR
OBJC_SOURCES += os/macosx/macos.m
+endif
ifndef DEDICATED
C_SOURCES += music/qtmidi.c
endif
diff --git a/os/macosx/Makefile.setup b/os/macosx/Makefile.setup
index 01c2813af..9b8441856 100644
--- a/os/macosx/Makefile.setup
+++ b/os/macosx/Makefile.setup
@@ -136,4 +136,6 @@ ifdef JAGUAR
WITH_NETWORK:=
# crosscompiling for jaguar should always be static
STATIC:=1
+ # libpng appears to break it too
+ WITH_PNG:=
endif \ No newline at end of file
diff --git a/stdafx.h b/stdafx.h
index 5318cc527..99122348d 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -9,7 +9,7 @@
// MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal
// strgen always runs from terminal and don't need a window for asserts
-#if !defined(__APPLE__) || defined(STRGEN)
+#if !defined(__APPLE__) || defined(STRGEN) || defined(JAGUAR_CROSSCOMPILE)
# include <assert.h>
#else
# include "os/macosx/macos.h"
diff --git a/unix.c b/unix.c
index fd20e3715..d5eaf0272 100644
--- a/unix.c
+++ b/unix.c
@@ -434,7 +434,7 @@ void ShowInfo(const char *str)
void ShowOSErrorBox(const char *buf)
{
-#if defined(__APPLE__)
+#if defined(__APPLE__) && !defined(JAGUAR_CROSSCOMPILE)
// this creates an NSAlertPanel with the contents of 'buf'
// this is the native and nicest way to do this on OSX
ShowMacDialog( buf, "See readme for more info\nMost likely you are missing files from the original TTD", "Quit" );