Skip to content

Commit

Permalink
Fix C-Make and Scons builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hrubymar10 authored and jyrkive committed Oct 30, 2018
1 parent ac4dbfd commit ca7f7a2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions SConstruct
Expand Up @@ -622,6 +622,7 @@ for env in [test_env, client_env, env]:
if env["PLATFORM"] == 'darwin': # Mac OS X
env.Append(FRAMEWORKS = "Cocoa") # Cocoa GUI
env.Append(FRAMEWORKS = "Security") # commonCrypto (after OpenSSL replacement on Mac)
env.Append(FRAMEWORKS = "IOKit") # IOKit

if not env['static_test']:
test_env.Append(CPPDEFINES = "BOOST_TEST_DYN_LINK")
Expand Down
1 change: 1 addition & 0 deletions source_lists/wesnoth
Expand Up @@ -67,6 +67,7 @@ commandline_options.cpp
config_cache.cpp
controller_base.cpp
countdown_clock.cpp
desktop/battery_info.cpp
desktop/notifications.cpp
desktop/open.cpp
desktop/paths.cpp
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -268,6 +268,7 @@ endif(WIN32)
if(APPLE)
set(libwesnoth-game_STAT_SRC
${libwesnoth-game_STAT_SRC}
desktop/apple_battery_info.mm
desktop/apple_notification.mm
desktop/apple_version.mm
)
Expand Down
1 change: 1 addition & 0 deletions src/SConscript
Expand Up @@ -89,6 +89,7 @@ if env["PLATFORM"] == "win32":
wesnoth_client_sources.append("desktop/windows_tray_notification.cpp")

if env["PLATFORM"] == 'darwin':
wesnoth_client_sources.append("desktop/apple_battery_info.mm")
wesnoth_client_sources.append("desktop/apple_notification.mm")
wesnoth_client_sources.append("desktop/apple_version.mm")

Expand Down
2 changes: 1 addition & 1 deletion src/desktop/apple_battery_info.mm
Expand Up @@ -76,7 +76,7 @@ bool does_device_have_battery() {
CFRelease(list);
CFRelease(info);

return (NSDictionary*) battery;
return static_cast<NSDictionary*>(battery);
}
#endif

Expand Down

0 comments on commit ca7f7a2

Please sign in to comment.