aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src
diff options
context:
space:
mode:
authorDan Gudmundsson <dgud@erlang.org>2013-10-30 17:36:49 +0100
committerDan Gudmundsson <dgud@erlang.org>2013-10-30 17:36:49 +0100
commit761dcd4a2933e415b639a86bcc15ef84477e9fdb (patch)
treef06694775f4341e250d9d13045fb9173b54c9c06 /lib/wx/c_src
parentf494a333d160fddd22cc01c71b88871399c87832 (diff)
downloadotp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.tar.gz
otp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.tar.bz2
otp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.zip
wx: Fix compilation on old macs
Diffstat (limited to 'lib/wx/c_src')
-rw-r--r--lib/wx/c_src/wxe_ps_init.c4
1 files changed, 4 insertions, 0 deletions
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() {