Include verification if target is iOS or macOS

This commit is contained in:
Martin Hrubý (hrubymar10) 2018-08-08 21:33:29 +02:00 committed by Jyrki Vesterinen
parent 3cb3dbeaf0
commit 0dfa4421ea

View file

@ -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>