| Index: third_party/khronos/EGL/eglplatform.h
|
| diff --git a/third_party/khronos/EGL/eglplatform.h b/third_party/khronos/EGL/eglplatform.h
|
| index b97ffe5f579fbf77fe662069faccdfb3a2cb7a0b..8e9ed43884866b5fff7c09f8a7ea303934465a8d 100644
|
| --- a/third_party/khronos/EGL/eglplatform.h
|
| +++ b/third_party/khronos/EGL/eglplatform.h
|
| @@ -94,11 +94,16 @@ typedef Pixmap EGLNativePixmapType;
|
| typedef Window EGLNativeWindowType;
|
|
|
| #elif defined(__APPLE__)
|
| +#ifdef __OBJC__
|
| +@class NSView;
|
| +#else
|
| +struct NSView;
|
| +#endif // __OBJC__
|
|
|
| // TODO(gman): these are place holders.
|
| -typedef void *EGLNativeDisplayType;
|
| -typedef int EGLNativePixmapType;
|
| -typedef int EGLNativeWindowType;
|
| +typedef void *EGLNativeDisplayType;
|
| +typedef int EGLNativePixmapType;
|
| +typedef struct NSView *EGLNativeWindowType;
|
|
|
| #else
|
| #error "Platform not recognized"
|
|
|