From 94cb0cc19dba4090be0d290209f7149eabfd6e0d Mon Sep 17 00:00:00 2001 From: paradust7 <102263465+paradust7@users.noreply.github.com> Date: Sun, 17 Dec 2023 08:00:41 -0800 Subject: [PATCH] Use KHRONOS_APIENTRY to fix win32 crash --- include/mt_opengl.h | 2 +- scripts/BindingGenerator.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mt_opengl.h b/include/mt_opengl.h index 7b76cd98..3231d860 100755 --- a/include/mt_opengl.h +++ b/include/mt_opengl.h @@ -11,7 +11,7 @@ #include #ifndef APIENTRY - #define APIENTRY + #define APIENTRY KHRONOS_APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY * diff --git a/scripts/BindingGenerator.lua b/scripts/BindingGenerator.lua index ba777489..65d7e371 100755 --- a/scripts/BindingGenerator.lua +++ b/scripts/BindingGenerator.lua @@ -355,7 +355,7 @@ f:write[[ #include #ifndef APIENTRY - #define APIENTRY + #define APIENTRY KHRONOS_APIENTRY #endif #ifndef APIENTRYP #define APIENTRYP APIENTRY *