From 3fa9c79ebef389fee8f1ef5f35d0db626acbb7a0 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 4 Jun 2014 14:27:36 +0200 Subject: 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 --- emulator/opengl/host/libs/Translator/EGL/EglImp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emulator/opengl/host/libs/Translator') 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[] = { -- cgit v1.1