mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 23:00:50 +00:00
Include verification if target is iOS or macOS
This commit is contained in:
parent
3cb3dbeaf0
commit
0dfa4421ea
@ -16,6 +16,10 @@
|
||||
|
||||
#include "apple_battery_info.hpp"
|
||||
|
||||
#if defined(__APPLE__) && defined(__MACH__) && defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__)
|
||||
#define __IPHONEOS__ (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
|
||||
#endif
|
||||
|
||||
#if defined(__IPHONEOS__)
|
||||
|
||||
#import <UIKit/UIDevice.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user