From 08f0374bfaccc41a497f18a6535fa0d13277abde Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 22 May 2000 16:21:27 +0000 Subject: moved a lot of Window-isms out of gl.h into other files --- include/GL/glu.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include/GL/glu.h') diff --git a/include/GL/glu.h b/include/GL/glu.h index 5acd0b73921..249e37d16c5 100644 --- a/include/GL/glu.h +++ b/include/GL/glu.h @@ -1,4 +1,4 @@ -/* $Id: glu.h,v 1.19 1999/11/24 13:06:48 brianp Exp $ */ +/* $Id: glu.h,v 1.20 2000/05/22 16:21:27 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -47,10 +47,21 @@ extern "C" { # else /* for use with static link lib build of Win32 edition only */ # define GLUAPI extern # endif /* _STATIC_MESA support */ +# define GLCALLBACK __stdcall +# define GLCALLBACKP __stdcall * #else # define GLUAPI extern +# define GLCALLBACK +# define GLCALLBACKP * #endif /* WIN32 / CYGWIN32 bracket */ +/* compatability guard so we don't need to change client code */ +#if defined(_WIN32) && !defined(_WINDEF_) && !defined(_GNU_H_WINDOWS32_BASE) && !defined(OPENSTEP) +# define CALLBACK GLCALLBACK +#endif + + + #ifdef macintosh #pragma enumsalwaysint on #if PRAGMA_IMPORT_SUPPORTED -- cgit v1.2.3