diff --git a/core/wsi/gl_context.h b/core/wsi/gl_context.h index 1858322ef..03c9c59a1 100644 --- a/core/wsi/gl_context.h +++ b/core/wsi/gl_context.h @@ -22,7 +22,7 @@ #include "types.h" #include "context.h" -#if defined(USE_OPENGL) && !defined(LIBRETRO) +#if defined(USE_OPENGL) && !defined(LIBRETRO) && !defined(TARGET_IPHONE) #include #endif diff --git a/core/wsi/osx.h b/core/wsi/osx.h index ee5f45ad4..0e84c12d6 100644 --- a/core/wsi/osx.h +++ b/core/wsi/osx.h @@ -21,6 +21,8 @@ #pragma once #if defined(TARGET_IPHONE) #include "gl_context.h" +#include +#include class OSXGraphicsContext : public GLGraphicsContext {