summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_mroman.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-01-03 20:59:52 -0500
committerKristian Høgsberg <[email protected]>2010-01-03 20:59:56 -0500
commitb8326b011d9b16dcc502507a52bd747a4b709399 (patch)
treef96317eb5fb05b48e34633b20f07febaf5b1196d /src/glut/glx/glut_mroman.c
parent8d62eb45997a199e116661e26217b4d44fb9ba1e (diff)
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 <GL/glut.h>. High quality code... worked around by copying the GLUTAPI specifier to the invidual C files.
Diffstat (limited to 'src/glut/glx/glut_mroman.c')
-rw-r--r--src/glut/glx/glut_mroman.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glut/glx/glut_mroman.c b/src/glut/glx/glut_mroman.c
index a29f043b4a8..08f879a5112 100644
--- a/src/glut/glx/glut_mroman.c
+++ b/src/glut/glx/glut_mroman.c
@@ -1,7 +1,9 @@
/* GENERATED FILE -- DO NOT MODIFY */
+#define glutStrokeMonoRoman XXX
#include "glutstroke.h"
+#undef glutStrokeMonoRoman
/* char: 33 '!' */
@@ -2447,5 +2449,6 @@ static const StrokeCharRec chars[] = {
{ 2, char127, 52.381, 104.762 },
};
-StrokeFontRec glutStrokeMonoRoman = { "Roman", 128, chars, 119.048, -33.3333 };
+GLUTAPI const StrokeFontRec glutStrokeMonoRoman;
+const StrokeFontRec glutStrokeMonoRoman = { "Roman", 128, chars, 119.048, -33.3333 };