From 7b64dce9e0eae3fa60b3fb72fe2afbf8aad56a7f Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 27 Dec 2023 16:46:15 +0200 Subject: [PATCH] Define APIENTRY the same way its defined in windows.h This avoids redefinition warnings when including epoxy/gl.h before windows.h --- include/epoxy/gl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/epoxy/gl.h b/include/epoxy/gl.h index 1fef4ba8..11168381 100644 --- a/include/epoxy/gl.h +++ b/include/epoxy/gl.h @@ -56,7 +56,10 @@ #else #ifndef APIENTRY -#define APIENTRY __stdcall +#ifndef WINAPI +#define WINAPI __stdcall +#endif +#define APIENTRY WINAPI #endif #ifndef GLAPIENTRY