aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-06-04 14:27:36 +0200
committerDavid 'Digit' Turner <digit@google.com>2014-06-04 14:27:36 +0200
commit3fa9c79ebef389fee8f1ef5f35d0db626acbb7a0 (patch)
treed168f6f4f9bbf84aa2a3f13e8475776b5869c9c1
parent3e924260e43a43057196e98976a5c4643eb7a480 (diff)
downloadsdk-3fa9c79ebef389fee8f1ef5f35d0db626acbb7a0.zip
sdk-3fa9c79ebef389fee8f1ef5f35d0db626acbb7a0.tar.gz
sdk-3fa9c79ebef389fee8f1ef5f35d0db626acbb7a0.tar.bz2
emulator/opengl: Fix compilation with Mingw64 toolchain.
When using the newest Mingw64 toolchain, both the forward declaration and the definition of functions need to use GLAPI / GLAPIENTRY or the compiler will complain. BUG=15402623 Change-Id: Ida9e1cb9b177759e7d6688dc1d883dd856abda04
-rw-r--r--emulator/opengl/host/libs/Translator/EGL/EglImp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp b/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
index 8896698..06dcf67 100644
--- a/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
+++ b/emulator/opengl/host/libs/Translator/EGL/EglImp.cpp
@@ -72,8 +72,8 @@ static EGLiface s_eglIface = {
#define EGL_EXTENTIONS 2
//decleration
-EGLImageKHR eglCreateImageKHR(EGLDisplay display, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
-EGLBoolean eglDestroyImageKHR(EGLDisplay display, EGLImageKHR image);
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay display, EGLContext context, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR(EGLDisplay display, EGLImageKHR image);
// extentions descriptors
static ExtentionDescriptor s_eglExtentions[] = {