Fix build on older apis, take 2
Change-Id: Iecaaec2eb10b0e24bca7253277854816e99674cc
diff --git a/system/egl/egl.cpp b/system/egl/egl.cpp
index 9825804..66a8a45 100644
--- a/system/egl/egl.cpp
+++ b/system/egl/egl.cpp
@@ -38,11 +38,14 @@
#include <GLES3/gl31.h>
+#if PLATFORM_SDK_VERSION < 18
+#define override
+#endif
+
#if PLATFORM_SDK_VERSION >= 16
#include <system/window.h>
#else // PLATFORM_SDK_VERSION >= 16
#include <private/ui/android_natives_priv.h>
-#define override
#endif // PLATFORM_SDK_VERSION >= 16
#if PLATFORM_SDK_VERSION <= 16