Skip to content

Commit

Permalink
Include verification if target is iOS or macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hrubymar10 authored and jyrkive committed Oct 30, 2018
1 parent 3cb3dbe commit 0dfa442
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/desktop/apple_battery_info.mm
Expand Up @@ -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>
Expand Down

0 comments on commit 0dfa442

Please sign in to comment.