mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 20:24:30 +08:00
Bug #2477: Make GLU/GLw/glut build properly even with -fvisibility=hidden.
This commit is contained in:
parent
4885a9eb20
commit
d084982240
@ -62,6 +62,9 @@
|
||||
#elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
|
||||
# define GLAPI extern
|
||||
# define GLAPIENTRY __stdcall
|
||||
#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
|
||||
# define GLAPI __attribute__((visibility("default")))
|
||||
# define GLAPIENTRY
|
||||
#endif /* WIN32 && !CYGWIN */
|
||||
|
||||
#if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__)
|
||||
|
@ -193,7 +193,7 @@ WGLAPI int GLAPIENTRY SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR *);
|
||||
#else /* _WIN32 not defined */
|
||||
|
||||
/* Define GLUTAPIENTRY and GLUTCALLBACK to nothing if we aren't on Win32. */
|
||||
# define GLUTAPIENTRY
|
||||
# define GLUTAPIENTRY GLAPI
|
||||
# define GLUTAPIENTRYV
|
||||
# define GLUT_APIENTRY_DEFINED
|
||||
# define GLUTCALLBACK
|
||||
|
@ -182,9 +182,9 @@ extern void GLwDrawingAreaSwapBuffers(Widget w);
|
||||
|
||||
#ifdef __GLX_MOTIF
|
||||
#ifdef _NO_PROTO
|
||||
extern Widget GLwCreateMDrawingArea();
|
||||
GLAPI extern Widget GLwCreateMDrawingArea();
|
||||
#else
|
||||
extern Widget GLwCreateMDrawingArea(Widget parent,char *name,ArgList arglist,Cardinal argcount);
|
||||
GLAPI extern Widget GLwCreateMDrawingArea(Widget parent,char *name,ArgList arglist,Cardinal argcount);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -59,7 +59,7 @@ typedef struct _GLwMDrawingAreaClassRec {
|
||||
} GLwMDrawingAreaClassRec;
|
||||
|
||||
|
||||
extern GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
|
||||
GLAPI extern GLwMDrawingAreaClassRec glwMDrawingAreaClassRec;
|
||||
|
||||
|
||||
/* XT */
|
||||
|
Loading…
Reference in New Issue
Block a user