aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {