From 761dcd4a2933e415b639a86bcc15ef84477e9fdb Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 30 Oct 2013 17:36:49 +0100 Subject: wx: Fix compilation on old macs --- lib/wx/c_src/wxe_ps_init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/wx/c_src') diff --git a/lib/wx/c_src/wxe_ps_init.c b/lib/wx/c_src/wxe_ps_init.c index 7c3e820e40..6ec702d18f 100644 --- a/lib/wx/c_src/wxe_ps_init.c +++ b/lib/wx/c_src/wxe_ps_init.c @@ -44,8 +44,12 @@ int is_packaged_app() { /* if(mainBundle) { */ /* return (CFBundleGetValueForInfoDictionaryKey(mainBundle, CFSTR("CFBundlePackageType")) != nil); */ /* } */ +#ifdef MAC_OS_X_VERSION_10_6 NSString * appName = [[NSRunningApplication currentApplication] localizedName]; return (strncmp("beam", [appName UTF8String], 4) != 0); +#else + return 0; +#endif } void * wxe_ps_init2() { -- cgit v1.2.3