diff options
author | Dan Gudmundsson <[email protected]> | 2013-10-30 17:36:49 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-10-30 17:36:49 +0100 |
commit | 761dcd4a2933e415b639a86bcc15ef84477e9fdb (patch) | |
tree | f06694775f4341e250d9d13045fb9173b54c9c06 /lib/wx/c_src/wxe_ps_init.c | |
parent | f494a333d160fddd22cc01c71b88871399c87832 (diff) | |
download | otp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.tar.gz otp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.tar.bz2 otp-761dcd4a2933e415b639a86bcc15ef84477e9fdb.zip |
wx: Fix compilation on old macs
Diffstat (limited to 'lib/wx/c_src/wxe_ps_init.c')
-rw-r--r-- | lib/wx/c_src/wxe_ps_init.c | 4 |
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() { |