Include verification if target is iOS or macOS
This commit is contained in:
parent
3cb3dbeaf0
commit
0dfa4421ea
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue