From 0af5324862ca586eebebe1356c413d3699856d67 Mon Sep 17 00:00:00 2001 From: ubkp <118854183+ubkp@users.noreply.github.com> Date: Thu, 28 Sep 2023 17:18:21 -0300 Subject: [PATCH] Fix compilation for android --- src/rcore.h | 7 ++++++- src/rcore_android.c | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/rcore.h b/src/rcore.h index 219f9b737..1d116cfc5 100644 --- a/src/rcore.h +++ b/src/rcore.h @@ -16,6 +16,11 @@ // NOTE: GLFW3 already includes gl.h (OpenGL) headers #endif +#if defined(PLATFORM_ANDROID) + #include // Native platform windowing system interface + //#include // OpenGL ES 2.0 library (not required in this module, only in rlgl) +#endif + #if defined(PLATFORM_DRM) #include // POSIX file control definitions - open(), creat(), fcntl() @@ -49,7 +54,7 @@ bool isKeyboard; // True if device has letter keycodes bool isGamepad; // True if device has gamepad buttons } InputEventWorker; - + #endif // PROVIDE A HEADER TO BE USED BY ALL THE rcore_* IMPLEMENTATIONS. diff --git a/src/rcore_android.c b/src/rcore_android.c index 8553b4076..e84a44d23 100644 --- a/src/rcore_android.c +++ b/src/rcore_android.c @@ -7,9 +7,6 @@ #include // Required for: android_app struct and activity management #include // Required for: JNIEnv and JavaVM [Used in OpenURL()] -#include // Native platform windowing system interface -//#include // OpenGL ES 2.0 library (not required in this module, only in rlgl) - static bool InitGraphicsDevice(int width, int height); // Initialize graphics device static void AndroidCommandCallback(struct android_app *app, int32_t cmd); // Process Android activity lifecycle commands static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event); // Process Android inputs