summaryrefslogtreecommitdiff
path: root/src/power/uikit/SDL_syspower.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/power/uikit/SDL_syspower.m')
-rw-r--r--src/power/uikit/SDL_syspower.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/power/uikit/SDL_syspower.m b/src/power/uikit/SDL_syspower.m
index 3f6f33d3..2766ef5d 100644
--- a/src/power/uikit/SDL_syspower.m
+++ b/src/power/uikit/SDL_syspower.m
@@ -21,13 +21,14 @@
#include "SDL_config.h"
#ifndef SDL_POWER_DISABLED
-#ifdef SDL_POWER_UIKIT
+#if SDL_POWER_UIKIT
#import <UIKit/UIKit.h>
#include "SDL_power.h"
#include "SDL_timer.h"
#include "SDL_assert.h"
+#include "SDL_syspower.h"
// turn off the battery monitor if it's been more than X ms since last check.
static const int BATTERY_MONITORING_TIMEOUT = 3000;