#ifdef USE_SPARC_ASM
static void _glx_mesa_init_sparc_glapi_relocs(void);
static int _mesa_sparc_needs_init = 1;
-#define INIT_MESA_SPARC { \
- if(_mesa_sparc_needs_init) { \
+#define INIT_MESA_SPARC do { \
+ if (_mesa_sparc_needs_init) { \
_glx_mesa_init_sparc_glapi_relocs(); \
- _mesa_sparc_needs_init = 0; \
- } \
-}
+ _mesa_sparc_needs_init = 0; \
+ } \
+ } while(0)
#else
-#define INIT_MESA_SPARC
+#define INIT_MESA_SPARC do { } while(0)
#endif
/*
}
#endif
- INIT_MESA_SPARC
+ INIT_MESA_SPARC;
/* The one and only long long lock */
__glXLock();
if (gc->currentDpy == dpy) {
/* Use opcode from gc because its right */
- INIT_MESA_SPARC
+ INIT_MESA_SPARC;
return gc->majorOpcode;
} else {
/*