From b0c787e0c3bdb31f9bf4029bb0cf20a3349f0724 Mon Sep 17 00:00:00 2001 From: vincentcasseau Date: Mon, 29 Jul 2024 18:18:19 +0200 Subject: [PATCH] CPlot: fixing APIENTRY in ubuntu --- Cassiopee/CPlot/CPlot/Data.h | 6 +++++- Cassiopee/CPlot/CPlot/GLEW/glew.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Cassiopee/CPlot/CPlot/Data.h b/Cassiopee/CPlot/CPlot/Data.h index 8645ef0b4..8dea49867 100644 --- a/Cassiopee/CPlot/CPlot/Data.h +++ b/Cassiopee/CPlot/CPlot/Data.h @@ -47,7 +47,11 @@ #ifdef __MESA__ #define GLAPI extern -//#define APIENTRY // added for ubuntu, to be checked on other linux +#ifdef _WIN32 + #define APIENTRY __stdcall +#else + #define APIENTRY +#endif #include #endif diff --git a/Cassiopee/CPlot/CPlot/GLEW/glew.c b/Cassiopee/CPlot/CPlot/GLEW/glew.c index ed8032bb7..42cf494d8 100644 --- a/Cassiopee/CPlot/CPlot/GLEW/glew.c +++ b/Cassiopee/CPlot/CPlot/GLEW/glew.c @@ -38,7 +38,11 @@ #if defined(GLEW_OSMESA) # define GLAPI extern -//# define APIENTRY // added for ubuntu, to be checked on other linux +# ifdef _WIN32 +# define APIENTRY __stdcall +# else +# define APIENTRY +# endif # include #elif defined(GLEW_EGL) # include