Commit 145e3cbb by Sergey Ulanov Committed by Commit Bot

Enable Fuchsia in platform-specific headers.

Two simple fixes to make libANGLE compile for Fuchsia: 1. Added stubs typedefs for platform-specific primitives in EGL/eglplatform.h for Fuchsia. 2. src/common/platform.h updated to define ANGLE_PLATFORM_POSIX on Fuchsia. Change-Id: I5f053de46632ac3f12bb93e57eeb94c3a34c867c Reviewed-on: https://chromium-review.googlesource.com/563758Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent caf20889
...@@ -83,7 +83,8 @@ typedef HWND EGLNativeWindowType; ...@@ -83,7 +83,8 @@ typedef HWND EGLNativeWindowType;
typedef IInspectable* EGLNativeWindowType; typedef IInspectable* EGLNativeWindowType;
#endif #endif
#elif defined(__APPLE__) || defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */ #elif defined(__APPLE__) || defined(__WINSCW__) || defined(__SYMBIAN32__) || \
defined(__Fuchsia__)
typedef int EGLNativeDisplayType; typedef int EGLNativeDisplayType;
typedef void *EGLNativeWindowType; typedef void *EGLNativeWindowType;
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
defined(__sun) || \ defined(__sun) || \
defined(__GLIBC__) || \ defined(__GLIBC__) || \
defined(__GNU__) || \ defined(__GNU__) || \
defined(__QNX__) defined(__QNX__) || \
defined(__Fuchsia__)
# define ANGLE_PLATFORM_POSIX 1 # define ANGLE_PLATFORM_POSIX 1
#else #else
# error Unsupported platform. # error Unsupported platform.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment