summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-09-19 16:19:43 +0000
committerBrian Paul <[email protected]>2002-09-19 16:19:43 +0000
commit473e51f2fbfb003717bb88616ea585fc8d76f75e (patch)
treef1ce211df7e089916bb720d36f8a950ef4624f4f /src/mesa/x86
parentcbc1fb0a9a4c97a36608fb20483246559b4c2f76 (diff)
Updated BeOS support (Philippe Houdoin)
Diffstat (limited to 'src/mesa/x86')
-rw-r--r--src/mesa/x86/gen_matypes.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/x86/gen_matypes.c b/src/mesa/x86/gen_matypes.c
index 8a86d696948..b97a70528c6 100644
--- a/src/mesa/x86/gen_matypes.c
+++ b/src/mesa/x86/gen_matypes.c
@@ -1,4 +1,4 @@
-/* $Id: gen_matypes.c,v 1.7 2002/02/15 16:32:36 brianp Exp $ */
+/* $Id: gen_matypes.c,v 1.8 2002/09/19 16:19:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -66,11 +66,21 @@ do { \
printf( "\n" ); \
} while (0)
+#if defined(__BEOS__)
+#define OFFSET( s, t, m ) \
+ printf( "#define %s\t%ld\n", s, offsetof( t, m ) );
+#else
#define OFFSET( s, t, m ) \
printf( "#define %s\t%d\n", s, offsetof( t, m ) );
+#endif
+#if defined(__BEOS__)
+#define SIZEOF( s, t ) \
+ printf( "#define %s\t%ld\n", s, sizeof(t) );
+#else
#define SIZEOF( s, t ) \
printf( "#define %s\t%d\n", s, sizeof(t) );
+#endif
#define DEFINE( s, d ) \
printf( "#define %s\t0x%x\n", s, d );