From: Nigel Stewart Date: Wed, 29 Oct 2008 15:22:05 +0000 (-0600) Subject: glu: fix compilation problem when using Windows gl.h (sf bug 2204589) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd1283f5151749db87edadb16a2aab4ed3b46363;p=mesa.git glu: fix compilation problem when using Windows gl.h (sf bug 2204589) --- diff --git a/include/GL/glu.h b/include/GL/glu.h index 3cd1113509f..cd967ac5ed4 100644 --- a/include/GL/glu.h +++ b/include/GL/glu.h @@ -38,8 +38,12 @@ #include #ifndef GLAPIENTRY +#if defined(_MSC_VER) || defined(__MINGW32__) +#define GLAPIENTRY __stdcall +#else #define GLAPIENTRY #endif +#endif #ifndef GLAPIENTRYP #define GLAPIENTRYP GLAPIENTRY *