diff --git a/include/osg/GL b/include/osg/GL index 0d6a7f844..ab48c0400 100644 --- a/include/osg/GL +++ b/include/osg/GL @@ -44,7 +44,8 @@ #ifndef APIENTRY #define GLUT_APIENTRY_DEFINED #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) - #define APIENTRY __stdcall + #define WINAPI __stdcall + #define APIENTRY WINAPI #else #define APIENTRY #endif @@ -64,7 +65,8 @@ // XXX This is from Win32's and #ifndef WINGDIAPI #define GLUT_WINGDIAPI_DEFINED - #define WINGDIAPI __declspec(dllimport) + #define DECLSPEC_IMPORT __declspec(dllimport) + #define WINGDIAPI DECLSPEC_IMPORT #endif // XXX This is from Win32's #ifndef _WCHAR_T_DEFINED