diff options
author | Matthew Hoops | 2011-07-13 09:20:34 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-07-13 09:20:34 -0400 |
commit | 19bb69c7ed9421fc4b410c58f32a879d9e4c44a0 (patch) | |
tree | 3f771cc262fb869e282b4bc9e676ddb11e316b48 /backends/platform/sdl | |
parent | 79e08c68acc1b86b6bede08a9c4f74620f62e7ea (diff) | |
download | scummvm-rg350-19bb69c7ed9421fc4b410c58f32a879d9e4c44a0.tar.gz scummvm-rg350-19bb69c7ed9421fc4b410c58f32a879d9e4c44a0.tar.bz2 scummvm-rg350-19bb69c7ed9421fc4b410c58f32a879d9e4c44a0.zip |
BACKENDS: Fix compilation on Mac OS X without translation support
Diffstat (limited to 'backends/platform/sdl')
-rwxr-xr-x | backends/platform/sdl/macosx/appMenu_osx.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/sdl/macosx/appMenu_osx.mm b/backends/platform/sdl/macosx/appMenu_osx.mm index 930564313d..794bb2d554 100755 --- a/backends/platform/sdl/macosx/appMenu_osx.mm +++ b/backends/platform/sdl/macosx/appMenu_osx.mm @@ -53,7 +53,11 @@ void replaceApplicationMenuItems() { appleMenu = [[NSMenu alloc] initWithTitle:@""]; // Get current encoding +#ifdef USE_TRANSLATION NSStringEncoding stringEncoding = CFStringConvertEncodingToNSStringEncoding(CFStringConvertIANACharSetNameToEncoding((CFStringRef)[NSString stringWithCString:(TransMan.getCurrentCharset()).c_str() encoding:NSASCIIStringEncoding])); +#else + NSStringEncoding stringEncoding = NSASCIIStringEncoding; +#endif // Add "About ScummVM" menu item [appleMenu addItemWithTitle:[NSString stringWithCString:_("About ScummVM") encoding:stringEncoding] action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""]; |