Module: Mesa
Branch: main
Commit: 7b7bbe871c067d1dfdb4fe4adfc0f38d051fe04c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7b7bbe871c067d1dfdb4fe4adfc0f38d051fe04c

Author: Yonggang Luo <[email protected]>
Date:   Thu Nov  3 00:04:55 2022 +0800

mesa: sync GLAPIENTRY with KHRONOS_APIENTRY in GL/gl.h

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Acked-by: Brian Paul [email protected]
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19472>

---

 include/GL/gl.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/GL/gl.h b/include/GL/gl.h
index b18360c3457..88efd27288e 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -37,10 +37,11 @@
 
 #if defined(__WIN32__) && !defined(__CYGWIN__)
 #  define GLAPI extern
-#  if defined(__MINGW32__) && defined(GL_NO_STDCALL) || defined(UNDER_CE)  /* 
The generated DLLs by MingW with STDCALL are not compatible with the ones done 
by Microsoft's compilers */
-#    define GLAPIENTRY
-#  else
+#  if !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
+     /* Win32 but not WinCE */
 #    define GLAPIENTRY __stdcall
+#  else
+#    define GLAPIENTRY
 #  endif
 #elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows 
opengl32 */
 #  define GLAPI extern

Reply via email to