From b8326b011d9b16dcc502507a52bd747a4b709399 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sun, 3 Jan 2010 20:59:52 -0500 Subject: Fix glut to work with -fvisibility=hidden The GLUTAPI #define used in the header file to mark the font structs visible wasn't kicking in because of the #define glutBitmap9By15 XXX prior to #include . High quality code... worked around by copying the GLUTAPI specifier to the invidual C files. --- src/glut/glx/capturexfont.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glut/glx/capturexfont.c') diff --git a/src/glut/glx/capturexfont.c b/src/glut/glx/capturexfont.c index b99e793056..fd63fb7c49 100644 --- a/src/glut/glx/capturexfont.c +++ b/src/glut/glx/capturexfont.c @@ -321,6 +321,7 @@ captureXFont(Display * dpy, Font font, char *xfont, char *name) } } printf("};\n\n"); + printf("GLUTAPI const BitmapFontRec %s;\n", name); printf("const BitmapFontRec %s = {\n", name); printf("\"%s\",\n", xfont); printf("%d,\n", last - first + 1); -- cgit v1.2.3