r269 - in trunk/code: botlib client macosx qcommon renderer unix win32

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Nov 4 17:32:00 EST 2005


Author: tma
Date: 2005-11-04 17:32:00 -0500 (Fri, 04 Nov 2005)
New Revision: 269

Modified:
   trunk/code/botlib/be_aas_route.c
   trunk/code/client/cl_cin.c
   trunk/code/client/snd_mix.c
   trunk/code/macosx/macosx_glsmp_ports.m
   trunk/code/macosx/macosx_input.m
   trunk/code/macosx/macosx_qgl.h
   trunk/code/qcommon/common.c
   trunk/code/qcommon/md4.c
   trunk/code/qcommon/q_math.c
   trunk/code/qcommon/q_platform.h
   trunk/code/qcommon/q_shared.h
   trunk/code/qcommon/qcommon.h
   trunk/code/qcommon/vm.c
   trunk/code/qcommon/vm_interpreted.c
   trunk/code/renderer/tr_local.h
   trunk/code/renderer/tr_main.c
   trunk/code/renderer/tr_shade_calc.c
   trunk/code/unix/Makefile
   trunk/code/unix/ftola.s
   trunk/code/unix/matha.s
   trunk/code/unix/qasm.h
   trunk/code/unix/snapvectora.s
   trunk/code/unix/unix_shared.c
   trunk/code/win32/win_shared.c
Log:
* Replaced a bunch of inline and __inline with ID_INLINE
* Replaced a bunch of __i386__ with id386
* General tidy up of asm preprocessor decisions
* Removed C_ONLY from the dedicated server build


Modified: trunk/code/botlib/be_aas_route.c
===================================================================
--- trunk/code/botlib/be_aas_route.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/botlib/be_aas_route.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -106,7 +106,7 @@
 // Returns:				-
 // Changes Globals:		-
 //===========================================================================
-__inline int AAS_ClusterAreaNum(int cluster, int areanum)
+ID_INLINE int AAS_ClusterAreaNum(int cluster, int areanum)
 {
 	int side, areacluster;
 
@@ -166,7 +166,7 @@
 // Returns:				-
 // Changes Globals:		-
 //===========================================================================
-__inline int AAS_TravelFlagForType_inline(int traveltype)
+ID_INLINE int AAS_TravelFlagForType_inline(int traveltype)
 {
 	int tfl;
 
@@ -339,7 +339,7 @@
 // Returns:				-
 // Changes Globals:		-
 //===========================================================================
-__inline float AAS_RoutingTime(void)
+ID_INLINE float AAS_RoutingTime(void)
 {
 	return AAS_Time();
 } //end of the function AAS_RoutingTime
@@ -379,7 +379,7 @@
 // Returns:				-
 // Changes Globals:		-
 //===========================================================================
-__inline int AAS_AreaContentsTravelFlags_inline(int areanum)
+ID_INLINE int AAS_AreaContentsTravelFlags_inline(int areanum)
 {
 	return aasworld.areacontentstravelflags[areanum];
 } //end of the function AAS_AreaContentsTravelFlags

Modified: trunk/code/client/cl_cin.c
===================================================================
--- trunk/code/client/cl_cin.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/client/cl_cin.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -645,7 +645,7 @@
 ******************************************************************************/
 #if defined(MACOS_X)
 
-static inline unsigned int yuv_to_rgb24( long y, long u, long v )
+static ID_INLINE unsigned int yuv_to_rgb24( long y, long u, long v )
 { 
 	long r,g,b,YY;
         

Modified: trunk/code/client/snd_mix.c
===================================================================
--- trunk/code/client/snd_mix.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/client/snd_mix.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -34,7 +34,6 @@
 int      snd_linear_count;
 short*   snd_out;
 
-#if !( (defined __GNUC__) && (defined __i386__) ) // if not a GNU x86 target
 #if	!id386                                        // if configured not to use asm
 
 void S_WriteLinearBlastStereo16 (void)
@@ -61,6 +60,9 @@
 			snd_out[i+1] = val;
 	}
 }
+#elif defined(__GNUC__)
+// uses snd_mixa.s
+void S_WriteLinearBlastStereo16 (void);
 #else
 
 __declspec( naked ) void S_WriteLinearBlastStereo16 (void)
@@ -108,10 +110,6 @@
 }
 
 #endif
-#else
-// forward declare, implementation somewhere else
-void S_WriteLinearBlastStereo16 (void);
-#endif
 
 void S_TransferStereo16 (unsigned long *pbuf, int endtime)
 {

Modified: trunk/code/macosx/macosx_glsmp_ports.m
===================================================================
--- trunk/code/macosx/macosx_glsmp_ports.m	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/macosx/macosx_glsmp_ports.m	2005-11-04 22:32:00 UTC (rev 269)
@@ -80,7 +80,7 @@
     RenderCompletedMsg = 2,
 };
 
-static /*inline*/ void MsgPortInit(MsgPort *port)
+static /*ID_INLINE*/ void MsgPortInit(MsgPort *port)
 {
 #if USE_MACH_PORTS  
     port->nsPort = [[NSMachPort alloc] init];
@@ -106,7 +106,7 @@
 #endif    
 }
 
-static /*inline*/ void _SendMsg(MsgPort *port, unsigned int msgCode, void *msgData, 
+static /*ID_INLINE*/ void _SendMsg(MsgPort *port, unsigned int msgCode, void *msgData, 
                          const char *functionName, const char *portName, const char *msgName)
 {
     int rc;
@@ -173,7 +173,7 @@
 #endif            
 }
 
-static /*inline*/ void _WaitMsg(MsgPort *port, unsigned int *msgCode, void **msgData, 
+static /*ID_INLINE*/ void _WaitMsg(MsgPort *port, unsigned int *msgCode, void **msgData, 
                                 const char *functionName, const char *portName)
 {
     int rc;

Modified: trunk/code/macosx/macosx_input.m
===================================================================
--- trunk/code/macosx/macosx_input.m	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/macosx/macosx_input.m	2005-11-04 22:32:00 UTC (rev 269)
@@ -356,7 +356,7 @@
     return Sys_Hide();
 }
 
-static inline void sendEventForCharacter(NSEvent *event, unichar character, qboolean keyDownFlag, int currentTime)
+static ID_INLINE void sendEventForCharacter(NSEvent *event, unichar character, qboolean keyDownFlag, int currentTime)
 {
     if (in_showevents->integer)
         Com_Printf("CHARACTER: 0x%02x down=%d\n", character, keyDownFlag);
@@ -563,7 +563,7 @@
     }
 }
 
-static inline void processKeyEvent(NSEvent *keyEvent, qboolean keyDownFlag, int currentTime)
+static ID_INLINE void processKeyEvent(NSEvent *keyEvent, qboolean keyDownFlag, int currentTime)
 {
     NSEventType eventType;
     NSString *characters;
@@ -578,7 +578,7 @@
     }
 }
 
-static inline void sendEventForMaskChangeInFlags(int quakeKey, unsigned int modifierMask, unsigned int newModifierFlags, int currentTime)
+static ID_INLINE void sendEventForMaskChangeInFlags(int quakeKey, unsigned int modifierMask, unsigned int newModifierFlags, int currentTime)
 {
     BOOL oldHadModifier, newHasModifier;
 
@@ -590,7 +590,7 @@
     }
 }
 
-static inline void processFlagsChangedEvent(NSEvent *flagsChangedEvent, int currentTime)
+static ID_INLINE void processFlagsChangedEvent(NSEvent *flagsChangedEvent, int currentTime)
 {
     int newModifierFlags;
 
@@ -603,7 +603,7 @@
     currentModifierFlags = newModifierFlags;
 }
 
-static inline void processSystemDefinedEvent(NSEvent *systemDefinedEvent, int currentTime)
+static ID_INLINE void processSystemDefinedEvent(NSEvent *systemDefinedEvent, int currentTime)
 {
     static int oldButtons = 0;
     int buttonsDelta;
@@ -666,7 +666,7 @@
     }
 }
 
-static inline void processEvent(NSEvent *event, int currentTime)
+static ID_INLINE void processEvent(NSEvent *event, int currentTime)
 {
     NSEventType eventType;
 

Modified: trunk/code/macosx/macosx_qgl.h
===================================================================
--- trunk/code/macosx/macosx_qgl.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/macosx/macosx_qgl.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -30,12 +30,12 @@
 extern unsigned int QGLBeginStarted;
 
 // This has to be done to avoid infinite recursion between our glGetError wrapper and QGLCheckError()
-static inline GLenum _glGetError(void) {
+static ID_INLINE GLenum _glGetError(void) {
     return glGetError();
 }
 
 // void glAccum (GLenum op, GLfloat value);
-static inline void qglAccum(GLenum op, GLfloat value)
+static ID_INLINE void qglAccum(GLenum op, GLfloat value)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -49,7 +49,7 @@
 }
 
 // void glAlphaFunc (GLenum func, GLclampf ref);
-static inline void qglAlphaFunc(GLenum func, GLclampf ref)
+static ID_INLINE void qglAlphaFunc(GLenum func, GLclampf ref)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -63,7 +63,7 @@
 }
 
 // GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
-static inline GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
+static ID_INLINE GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
 {
     GLboolean returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -79,7 +79,7 @@
 }
 
 // void glArrayElement (GLint i);
-static inline void qglArrayElement(GLint i)
+static ID_INLINE void qglArrayElement(GLint i)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -93,7 +93,7 @@
 }
 
 // void glBegin (GLenum mode);
-static inline void qglBegin(GLenum mode)
+static ID_INLINE void qglBegin(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -108,7 +108,7 @@
 }
 
 // void glBindTexture (GLenum target, GLuint texture);
-static inline void qglBindTexture(GLenum target, GLuint texture)
+static ID_INLINE void qglBindTexture(GLenum target, GLuint texture)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -122,7 +122,7 @@
 }
 
 // void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
-static inline void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
+static ID_INLINE void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -136,7 +136,7 @@
 }
 
 // void glBlendFunc (GLenum sfactor, GLenum dfactor);
-static inline void qglBlendFunc(GLenum sfactor, GLenum dfactor)
+static ID_INLINE void qglBlendFunc(GLenum sfactor, GLenum dfactor)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -150,7 +150,7 @@
 }
 
 // void glCallList (GLuint list);
-static inline void qglCallList(GLuint list)
+static ID_INLINE void qglCallList(GLuint list)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -164,7 +164,7 @@
 }
 
 // void glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
-static inline void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
+static ID_INLINE void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -178,7 +178,7 @@
 }
 
 // void glClear (GLbitfield mask);
-static inline void qglClear(GLbitfield mask)
+static ID_INLINE void qglClear(GLbitfield mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -192,7 +192,7 @@
 }
 
 // void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-static inline void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+static ID_INLINE void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -206,7 +206,7 @@
 }
 
 // void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-static inline void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+static ID_INLINE void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -220,7 +220,7 @@
 }
 
 // void glClearDepth (GLclampd depth);
-static inline void qglClearDepth(GLclampd depth)
+static ID_INLINE void qglClearDepth(GLclampd depth)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -234,7 +234,7 @@
 }
 
 // void glClearIndex (GLfloat c);
-static inline void qglClearIndex(GLfloat c)
+static ID_INLINE void qglClearIndex(GLfloat c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -248,7 +248,7 @@
 }
 
 // void glClearStencil (GLint s);
-static inline void qglClearStencil(GLint s)
+static ID_INLINE void qglClearStencil(GLint s)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -262,7 +262,7 @@
 }
 
 // void glClipPlane (GLenum plane, const GLdouble *equation);
-static inline void qglClipPlane(GLenum plane, const GLdouble *equation)
+static ID_INLINE void qglClipPlane(GLenum plane, const GLdouble *equation)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -276,7 +276,7 @@
 }
 
 // void glColor3b (GLbyte red, GLbyte green, GLbyte blue);
-static inline void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
+static ID_INLINE void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -290,7 +290,7 @@
 }
 
 // void glColor3bv (const GLbyte *v);
-static inline void qglColor3bv(const GLbyte *v)
+static ID_INLINE void qglColor3bv(const GLbyte *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -304,7 +304,7 @@
 }
 
 // void glColor3d (GLdouble red, GLdouble green, GLdouble blue);
-static inline void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
+static ID_INLINE void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -318,7 +318,7 @@
 }
 
 // void glColor3dv (const GLdouble *v);
-static inline void qglColor3dv(const GLdouble *v)
+static ID_INLINE void qglColor3dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -332,7 +332,7 @@
 }
 
 // void glColor3f (GLfloat red, GLfloat green, GLfloat blue);
-static inline void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
+static ID_INLINE void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -346,7 +346,7 @@
 }
 
 // void glColor3fv (const GLfloat *v);
-static inline void qglColor3fv(const GLfloat *v)
+static ID_INLINE void qglColor3fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -360,7 +360,7 @@
 }
 
 // void glColor3i (GLint red, GLint green, GLint blue);
-static inline void qglColor3i(GLint red, GLint green, GLint blue)
+static ID_INLINE void qglColor3i(GLint red, GLint green, GLint blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -374,7 +374,7 @@
 }
 
 // void glColor3iv (const GLint *v);
-static inline void qglColor3iv(const GLint *v)
+static ID_INLINE void qglColor3iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -388,7 +388,7 @@
 }
 
 // void glColor3s (GLshort red, GLshort green, GLshort blue);
-static inline void qglColor3s(GLshort red, GLshort green, GLshort blue)
+static ID_INLINE void qglColor3s(GLshort red, GLshort green, GLshort blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -402,7 +402,7 @@
 }
 
 // void glColor3sv (const GLshort *v);
-static inline void qglColor3sv(const GLshort *v)
+static ID_INLINE void qglColor3sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -416,7 +416,7 @@
 }
 
 // void glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
-static inline void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
+static ID_INLINE void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -430,7 +430,7 @@
 }
 
 // void glColor3ubv (const GLubyte *v);
-static inline void qglColor3ubv(const GLubyte *v)
+static ID_INLINE void qglColor3ubv(const GLubyte *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -444,7 +444,7 @@
 }
 
 // void glColor3ui (GLuint red, GLuint green, GLuint blue);
-static inline void qglColor3ui(GLuint red, GLuint green, GLuint blue)
+static ID_INLINE void qglColor3ui(GLuint red, GLuint green, GLuint blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -458,7 +458,7 @@
 }
 
 // void glColor3uiv (const GLuint *v);
-static inline void qglColor3uiv(const GLuint *v)
+static ID_INLINE void qglColor3uiv(const GLuint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -472,7 +472,7 @@
 }
 
 // void glColor3us (GLushort red, GLushort green, GLushort blue);
-static inline void qglColor3us(GLushort red, GLushort green, GLushort blue)
+static ID_INLINE void qglColor3us(GLushort red, GLushort green, GLushort blue)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -486,7 +486,7 @@
 }
 
 // void glColor3usv (const GLushort *v);
-static inline void qglColor3usv(const GLushort *v)
+static ID_INLINE void qglColor3usv(const GLushort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -500,7 +500,7 @@
 }
 
 // void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
-static inline void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
+static ID_INLINE void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -514,7 +514,7 @@
 }
 
 // void glColor4bv (const GLbyte *v);
-static inline void qglColor4bv(const GLbyte *v)
+static ID_INLINE void qglColor4bv(const GLbyte *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -528,7 +528,7 @@
 }
 
 // void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
-static inline void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
+static ID_INLINE void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -542,7 +542,7 @@
 }
 
 // void glColor4dv (const GLdouble *v);
-static inline void qglColor4dv(const GLdouble *v)
+static ID_INLINE void qglColor4dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -556,7 +556,7 @@
 }
 
 // void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-static inline void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+static ID_INLINE void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -570,7 +570,7 @@
 }
 
 // void glColor4fv (const GLfloat *v);
-static inline void qglColor4fv(const GLfloat *v)
+static ID_INLINE void qglColor4fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -584,7 +584,7 @@
 }
 
 // void glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
-static inline void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
+static ID_INLINE void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -598,7 +598,7 @@
 }
 
 // void glColor4iv (const GLint *v);
-static inline void qglColor4iv(const GLint *v)
+static ID_INLINE void qglColor4iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -612,7 +612,7 @@
 }
 
 // void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
-static inline void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
+static ID_INLINE void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -626,7 +626,7 @@
 }
 
 // void glColor4sv (const GLshort *v);
-static inline void qglColor4sv(const GLshort *v)
+static ID_INLINE void qglColor4sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -640,7 +640,7 @@
 }
 
 // void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
-static inline void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+static ID_INLINE void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -654,7 +654,7 @@
 }
 
 // void glColor4ubv (const GLubyte *v);
-static inline void qglColor4ubv(const GLubyte *v)
+static ID_INLINE void qglColor4ubv(const GLubyte *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -668,7 +668,7 @@
 }
 
 // void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
-static inline void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
+static ID_INLINE void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -682,7 +682,7 @@
 }
 
 // void glColor4uiv (const GLuint *v);
-static inline void qglColor4uiv(const GLuint *v)
+static ID_INLINE void qglColor4uiv(const GLuint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -696,7 +696,7 @@
 }
 
 // void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
-static inline void qglColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
+static ID_INLINE void qglColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -710,7 +710,7 @@
 }
 
 // void glColor4usv (const GLushort *v);
-static inline void qglColor4usv(const GLushort *v)
+static ID_INLINE void qglColor4usv(const GLushort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -724,7 +724,7 @@
 }
 
 // void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-static inline void qglColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+static ID_INLINE void qglColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -738,7 +738,7 @@
 }
 
 // void glColorMaterial (GLenum face, GLenum mode);
-static inline void qglColorMaterial(GLenum face, GLenum mode)
+static ID_INLINE void qglColorMaterial(GLenum face, GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -752,7 +752,7 @@
 }
 
 // void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -766,7 +766,7 @@
 }
 
 // void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
-static inline void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
+static ID_INLINE void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -780,7 +780,7 @@
 }
 
 // void glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
-static inline void qglCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
+static ID_INLINE void qglCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -794,7 +794,7 @@
 }
 
 // void glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-static inline void qglCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+static ID_INLINE void qglCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -808,7 +808,7 @@
 }
 
 // void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-static inline void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
+static ID_INLINE void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -822,7 +822,7 @@
 }
 
 // void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -836,7 +836,7 @@
 }
 
 // void glCullFace (GLenum mode);
-static inline void qglCullFace(GLenum mode)
+static ID_INLINE void qglCullFace(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -850,7 +850,7 @@
 }
 
 // void glDeleteLists (GLuint list, GLsizei range);
-static inline void qglDeleteLists(GLuint list, GLsizei range)
+static ID_INLINE void qglDeleteLists(GLuint list, GLsizei range)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -864,7 +864,7 @@
 }
 
 // void glDeleteTextures (GLsizei n, const GLuint *textures);
-static inline void qglDeleteTextures(GLsizei n, const GLuint *textures)
+static ID_INLINE void qglDeleteTextures(GLsizei n, const GLuint *textures)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -878,7 +878,7 @@
 }
 
 // void glDepthFunc (GLenum func);
-static inline void qglDepthFunc(GLenum func)
+static ID_INLINE void qglDepthFunc(GLenum func)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -892,7 +892,7 @@
 }
 
 // void glDepthMask (GLboolean flag);
-static inline void qglDepthMask(GLboolean flag)
+static ID_INLINE void qglDepthMask(GLboolean flag)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -906,7 +906,7 @@
 }
 
 // void glDepthRange (GLclampd zNear, GLclampd zFar);
-static inline void qglDepthRange(GLclampd zNear, GLclampd zFar)
+static ID_INLINE void qglDepthRange(GLclampd zNear, GLclampd zFar)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -920,7 +920,7 @@
 }
 
 // void glDisable (GLenum cap);
-static inline void qglDisable(GLenum cap)
+static ID_INLINE void qglDisable(GLenum cap)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -934,7 +934,7 @@
 }
 
 // void glDisableClientState (GLenum array);
-static inline void qglDisableClientState(GLenum array)
+static ID_INLINE void qglDisableClientState(GLenum array)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -948,7 +948,7 @@
 }
 
 // void glDrawArrays (GLenum mode, GLint first, GLsizei count);
-static inline void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
+static ID_INLINE void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -962,7 +962,7 @@
 }
 
 // void glDrawBuffer (GLenum mode);
-static inline void qglDrawBuffer(GLenum mode)
+static ID_INLINE void qglDrawBuffer(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -976,7 +976,7 @@
 }
 
 // void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
-static inline void qglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
+static ID_INLINE void qglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -990,7 +990,7 @@
 }
 
 // void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1004,7 +1004,7 @@
 }
 
 // void glEdgeFlag (GLboolean flag);
-static inline void qglEdgeFlag(GLboolean flag)
+static ID_INLINE void qglEdgeFlag(GLboolean flag)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1018,7 +1018,7 @@
 }
 
 // void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
-static inline void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1032,7 +1032,7 @@
 }
 
 // void glEdgeFlagv (const GLboolean *flag);
-static inline void qglEdgeFlagv(const GLboolean *flag)
+static ID_INLINE void qglEdgeFlagv(const GLboolean *flag)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1046,7 +1046,7 @@
 }
 
 // void glEnable (GLenum cap);
-static inline void qglEnable(GLenum cap)
+static ID_INLINE void qglEnable(GLenum cap)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1060,7 +1060,7 @@
 }
 
 // void glEnableClientState (GLenum array);
-static inline void qglEnableClientState(GLenum array)
+static ID_INLINE void qglEnableClientState(GLenum array)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1074,7 +1074,7 @@
 }
 
 // void glEnd (void);
-static inline void qglEnd(void)
+static ID_INLINE void qglEnd(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1089,7 +1089,7 @@
 }
 
 // void glEndList (void);
-static inline void qglEndList(void)
+static ID_INLINE void qglEndList(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1103,7 +1103,7 @@
 }
 
 // void glEvalCoord1d (GLdouble u);
-static inline void qglEvalCoord1d(GLdouble u)
+static ID_INLINE void qglEvalCoord1d(GLdouble u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1117,7 +1117,7 @@
 }
 
 // void glEvalCoord1dv (const GLdouble *u);
-static inline void qglEvalCoord1dv(const GLdouble *u)
+static ID_INLINE void qglEvalCoord1dv(const GLdouble *u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1131,7 +1131,7 @@
 }
 
 // void glEvalCoord1f (GLfloat u);
-static inline void qglEvalCoord1f(GLfloat u)
+static ID_INLINE void qglEvalCoord1f(GLfloat u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1145,7 +1145,7 @@
 }
 
 // void glEvalCoord1fv (const GLfloat *u);
-static inline void qglEvalCoord1fv(const GLfloat *u)
+static ID_INLINE void qglEvalCoord1fv(const GLfloat *u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1159,7 +1159,7 @@
 }
 
 // void glEvalCoord2d (GLdouble u, GLdouble v);
-static inline void qglEvalCoord2d(GLdouble u, GLdouble v)
+static ID_INLINE void qglEvalCoord2d(GLdouble u, GLdouble v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1173,7 +1173,7 @@
 }
 
 // void glEvalCoord2dv (const GLdouble *u);
-static inline void qglEvalCoord2dv(const GLdouble *u)
+static ID_INLINE void qglEvalCoord2dv(const GLdouble *u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1187,7 +1187,7 @@
 }
 
 // void glEvalCoord2f (GLfloat u, GLfloat v);
-static inline void qglEvalCoord2f(GLfloat u, GLfloat v)
+static ID_INLINE void qglEvalCoord2f(GLfloat u, GLfloat v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1201,7 +1201,7 @@
 }
 
 // void glEvalCoord2fv (const GLfloat *u);
-static inline void qglEvalCoord2fv(const GLfloat *u)
+static ID_INLINE void qglEvalCoord2fv(const GLfloat *u)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1215,7 +1215,7 @@
 }
 
 // void glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
-static inline void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
+static ID_INLINE void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1229,7 +1229,7 @@
 }
 
 // void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
-static inline void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
+static ID_INLINE void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1243,7 +1243,7 @@
 }
 
 // void glEvalPoint1 (GLint i);
-static inline void qglEvalPoint1(GLint i)
+static ID_INLINE void qglEvalPoint1(GLint i)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1257,7 +1257,7 @@
 }
 
 // void glEvalPoint2 (GLint i, GLint j);
-static inline void qglEvalPoint2(GLint i, GLint j)
+static ID_INLINE void qglEvalPoint2(GLint i, GLint j)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1271,7 +1271,7 @@
 }
 
 // void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
-static inline void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
+static ID_INLINE void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1285,7 +1285,7 @@
 }
 
 // void glFinish (void);
-static inline void qglFinish(void)
+static ID_INLINE void qglFinish(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1299,7 +1299,7 @@
 }
 
 // void glFlush (void);
-static inline void qglFlush(void)
+static ID_INLINE void qglFlush(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1313,7 +1313,7 @@
 }
 
 // void glFogf (GLenum pname, GLfloat param);
-static inline void qglFogf(GLenum pname, GLfloat param)
+static ID_INLINE void qglFogf(GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1327,7 +1327,7 @@
 }
 
 // void glFogfv (GLenum pname, const GLfloat *params);
-static inline void qglFogfv(GLenum pname, const GLfloat *params)
+static ID_INLINE void qglFogfv(GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1341,7 +1341,7 @@
 }
 
 // void glFogi (GLenum pname, GLint param);
-static inline void qglFogi(GLenum pname, GLint param)
+static ID_INLINE void qglFogi(GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1355,7 +1355,7 @@
 }
 
 // void glFogiv (GLenum pname, const GLint *params);
-static inline void qglFogiv(GLenum pname, const GLint *params)
+static ID_INLINE void qglFogiv(GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1369,7 +1369,7 @@
 }
 
 // void glFrontFace (GLenum mode);
-static inline void qglFrontFace(GLenum mode)
+static ID_INLINE void qglFrontFace(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1383,7 +1383,7 @@
 }
 
 // void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-static inline void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+static ID_INLINE void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1397,7 +1397,7 @@
 }
 
 // GLuint glGenLists (GLsizei range);
-static inline GLuint qglGenLists(GLsizei range)
+static ID_INLINE GLuint qglGenLists(GLsizei range)
 {
     GLuint returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1413,7 +1413,7 @@
 }
 
 // void glGenTextures (GLsizei n, GLuint *textures);
-static inline void qglGenTextures(GLsizei n, GLuint *textures)
+static ID_INLINE void qglGenTextures(GLsizei n, GLuint *textures)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1427,7 +1427,7 @@
 }
 
 // void glGetBooleanv (GLenum pname, GLboolean *params);
-static inline void qglGetBooleanv(GLenum pname, GLboolean *params)
+static ID_INLINE void qglGetBooleanv(GLenum pname, GLboolean *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1441,7 +1441,7 @@
 }
 
 // void glGetClipPlane (GLenum plane, GLdouble *equation);
-static inline void qglGetClipPlane(GLenum plane, GLdouble *equation)
+static ID_INLINE void qglGetClipPlane(GLenum plane, GLdouble *equation)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1455,7 +1455,7 @@
 }
 
 // void glGetDoublev (GLenum pname, GLdouble *params);
-static inline void qglGetDoublev(GLenum pname, GLdouble *params)
+static ID_INLINE void qglGetDoublev(GLenum pname, GLdouble *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1469,7 +1469,7 @@
 }
 
 // GLenum glGetError (void);
-static inline GLenum qglGetError(void)
+static ID_INLINE GLenum qglGetError(void)
 {
     GLenum returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1485,7 +1485,7 @@
 }
 
 // void glGetFloatv (GLenum pname, GLfloat *params);
-static inline void qglGetFloatv(GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetFloatv(GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1499,7 +1499,7 @@
 }
 
 // void glGetIntegerv (GLenum pname, GLint *params);
-static inline void qglGetIntegerv(GLenum pname, GLint *params)
+static ID_INLINE void qglGetIntegerv(GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1513,7 +1513,7 @@
 }
 
 // void glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
-static inline void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1527,7 +1527,7 @@
 }
 
 // void glGetLightiv (GLenum light, GLenum pname, GLint *params);
-static inline void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
+static ID_INLINE void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1541,7 +1541,7 @@
 }
 
 // void glGetMapdv (GLenum target, GLenum query, GLdouble *v);
-static inline void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
+static ID_INLINE void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1555,7 +1555,7 @@
 }
 
 // void glGetMapfv (GLenum target, GLenum query, GLfloat *v);
-static inline void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
+static ID_INLINE void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1569,7 +1569,7 @@
 }
 
 // void glGetMapiv (GLenum target, GLenum query, GLint *v);
-static inline void qglGetMapiv(GLenum target, GLenum query, GLint *v)
+static ID_INLINE void qglGetMapiv(GLenum target, GLenum query, GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1583,7 +1583,7 @@
 }
 
 // void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
-static inline void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1597,7 +1597,7 @@
 }
 
 // void glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
-static inline void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
+static ID_INLINE void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1611,7 +1611,7 @@
 }
 
 // void glGetPixelMapfv (GLenum map, GLfloat *values);
-static inline void qglGetPixelMapfv(GLenum map, GLfloat *values)
+static ID_INLINE void qglGetPixelMapfv(GLenum map, GLfloat *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1625,7 +1625,7 @@
 }
 
 // void glGetPixelMapuiv (GLenum map, GLuint *values);
-static inline void qglGetPixelMapuiv(GLenum map, GLuint *values)
+static ID_INLINE void qglGetPixelMapuiv(GLenum map, GLuint *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1639,7 +1639,7 @@
 }
 
 // void glGetPixelMapusv (GLenum map, GLushort *values);
-static inline void qglGetPixelMapusv(GLenum map, GLushort *values)
+static ID_INLINE void qglGetPixelMapusv(GLenum map, GLushort *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1653,7 +1653,7 @@
 }
 
 // void glGetPointerv (GLenum pname, GLvoid* *params);
-static inline void qglGetPointerv(GLenum pname, GLvoid* *params)
+static ID_INLINE void qglGetPointerv(GLenum pname, GLvoid* *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1667,7 +1667,7 @@
 }
 
 // void glGetPolygonStipple (GLubyte *mask);
-static inline void qglGetPolygonStipple(GLubyte *mask)
+static ID_INLINE void qglGetPolygonStipple(GLubyte *mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1681,7 +1681,7 @@
 }
 
 // const GLubyte * glGetString (GLenum name);
-static inline const GLubyte * qglGetString(GLenum name)
+static ID_INLINE const GLubyte * qglGetString(GLenum name)
 {
     const GLubyte * returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -1697,7 +1697,7 @@
 }
 
 // void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
-static inline void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1711,7 +1711,7 @@
 }
 
 // void glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
-static inline void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1725,7 +1725,7 @@
 }
 
 // void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
-static inline void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
+static ID_INLINE void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1739,7 +1739,7 @@
 }
 
 // void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
-static inline void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1753,7 +1753,7 @@
 }
 
 // void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
-static inline void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1767,7 +1767,7 @@
 }
 
 // void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-static inline void qglGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
+static ID_INLINE void qglGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1781,7 +1781,7 @@
 }
 
 // void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
-static inline void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1795,7 +1795,7 @@
 }
 
 // void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
-static inline void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1809,7 +1809,7 @@
 }
 
 // void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
-static inline void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
+static ID_INLINE void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1823,7 +1823,7 @@
 }
 
 // void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
-static inline void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
+static ID_INLINE void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1837,7 +1837,7 @@
 }
 
 // void glHint (GLenum target, GLenum mode);
-static inline void qglHint(GLenum target, GLenum mode)
+static ID_INLINE void qglHint(GLenum target, GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1851,7 +1851,7 @@
 }
 
 // void glIndexMask (GLuint mask);
-static inline void qglIndexMask(GLuint mask)
+static ID_INLINE void qglIndexMask(GLuint mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1865,7 +1865,7 @@
 }
 
 // void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1879,7 +1879,7 @@
 }
 
 // void glIndexd (GLdouble c);
-static inline void qglIndexd(GLdouble c)
+static ID_INLINE void qglIndexd(GLdouble c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1893,7 +1893,7 @@
 }
 
 // void glIndexdv (const GLdouble *c);
-static inline void qglIndexdv(const GLdouble *c)
+static ID_INLINE void qglIndexdv(const GLdouble *c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1907,7 +1907,7 @@
 }
 
 // void glIndexf (GLfloat c);
-static inline void qglIndexf(GLfloat c)
+static ID_INLINE void qglIndexf(GLfloat c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1921,7 +1921,7 @@
 }
 
 // void glIndexfv (const GLfloat *c);
-static inline void qglIndexfv(const GLfloat *c)
+static ID_INLINE void qglIndexfv(const GLfloat *c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1935,7 +1935,7 @@
 }
 
 // void glIndexi (GLint c);
-static inline void qglIndexi(GLint c)
+static ID_INLINE void qglIndexi(GLint c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1949,7 +1949,7 @@
 }
 
 // void glIndexiv (const GLint *c);
-static inline void qglIndexiv(const GLint *c)
+static ID_INLINE void qglIndexiv(const GLint *c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1963,7 +1963,7 @@
 }
 
 // void glIndexs (GLshort c);
-static inline void qglIndexs(GLshort c)
+static ID_INLINE void qglIndexs(GLshort c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1977,7 +1977,7 @@
 }
 
 // void glIndexsv (const GLshort *c);
-static inline void qglIndexsv(const GLshort *c)
+static ID_INLINE void qglIndexsv(const GLshort *c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -1991,7 +1991,7 @@
 }
 
 // void glIndexub (GLubyte c);
-static inline void qglIndexub(GLubyte c)
+static ID_INLINE void qglIndexub(GLubyte c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2005,7 +2005,7 @@
 }
 
 // void glIndexubv (const GLubyte *c);
-static inline void qglIndexubv(const GLubyte *c)
+static ID_INLINE void qglIndexubv(const GLubyte *c)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2019,7 +2019,7 @@
 }
 
 // void glInitNames (void);
-static inline void qglInitNames(void)
+static ID_INLINE void qglInitNames(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2033,7 +2033,7 @@
 }
 
 // void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
-static inline void qglInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2047,7 +2047,7 @@
 }
 
 // GLboolean glIsEnabled (GLenum cap);
-static inline GLboolean qglIsEnabled(GLenum cap)
+static ID_INLINE GLboolean qglIsEnabled(GLenum cap)
 {
     GLboolean returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2063,7 +2063,7 @@
 }
 
 // GLboolean glIsList (GLuint list);
-static inline GLboolean qglIsList(GLuint list)
+static ID_INLINE GLboolean qglIsList(GLuint list)
 {
     GLboolean returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2079,7 +2079,7 @@
 }
 
 // GLboolean glIsTexture (GLuint texture);
-static inline GLboolean qglIsTexture(GLuint texture)
+static ID_INLINE GLboolean qglIsTexture(GLuint texture)
 {
     GLboolean returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -2095,7 +2095,7 @@
 }
 
 // void glLightModelf (GLenum pname, GLfloat param);
-static inline void qglLightModelf(GLenum pname, GLfloat param)
+static ID_INLINE void qglLightModelf(GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2109,7 +2109,7 @@
 }
 
 // void glLightModelfv (GLenum pname, const GLfloat *params);
-static inline void qglLightModelfv(GLenum pname, const GLfloat *params)
+static ID_INLINE void qglLightModelfv(GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2123,7 +2123,7 @@
 }
 
 // void glLightModeli (GLenum pname, GLint param);
-static inline void qglLightModeli(GLenum pname, GLint param)
+static ID_INLINE void qglLightModeli(GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2137,7 +2137,7 @@
 }
 
 // void glLightModeliv (GLenum pname, const GLint *params);
-static inline void qglLightModeliv(GLenum pname, const GLint *params)
+static ID_INLINE void qglLightModeliv(GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2151,7 +2151,7 @@
 }
 
 // void glLightf (GLenum light, GLenum pname, GLfloat param);
-static inline void qglLightf(GLenum light, GLenum pname, GLfloat param)
+static ID_INLINE void qglLightf(GLenum light, GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2165,7 +2165,7 @@
 }
 
 // void glLightfv (GLenum light, GLenum pname, const GLfloat *params);
-static inline void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2179,7 +2179,7 @@
 }
 
 // void glLighti (GLenum light, GLenum pname, GLint param);
-static inline void qglLighti(GLenum light, GLenum pname, GLint param)
+static ID_INLINE void qglLighti(GLenum light, GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2193,7 +2193,7 @@
 }
 
 // void glLightiv (GLenum light, GLenum pname, const GLint *params);
-static inline void qglLightiv(GLenum light, GLenum pname, const GLint *params)
+static ID_INLINE void qglLightiv(GLenum light, GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2207,7 +2207,7 @@
 }
 
 // void glLineStipple (GLint factor, GLushort pattern);
-static inline void qglLineStipple(GLint factor, GLushort pattern)
+static ID_INLINE void qglLineStipple(GLint factor, GLushort pattern)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2221,7 +2221,7 @@
 }
 
 // void glLineWidth (GLfloat width);
-static inline void qglLineWidth(GLfloat width)
+static ID_INLINE void qglLineWidth(GLfloat width)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2235,7 +2235,7 @@
 }
 
 // void glListBase (GLuint base);
-static inline void qglListBase(GLuint base)
+static ID_INLINE void qglListBase(GLuint base)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2249,7 +2249,7 @@
 }
 
 // void glLoadIdentity (void);
-static inline void qglLoadIdentity(void)
+static ID_INLINE void qglLoadIdentity(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2263,7 +2263,7 @@
 }
 
 // void glLoadMatrixd (const GLdouble *m);
-static inline void qglLoadMatrixd(const GLdouble *m)
+static ID_INLINE void qglLoadMatrixd(const GLdouble *m)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2277,7 +2277,7 @@
 }
 
 // void glLoadMatrixf (const GLfloat *m);
-static inline void qglLoadMatrixf(const GLfloat *m)
+static ID_INLINE void qglLoadMatrixf(const GLfloat *m)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2291,7 +2291,7 @@
 }
 
 // void glLoadName (GLuint name);
-static inline void qglLoadName(GLuint name)
+static ID_INLINE void qglLoadName(GLuint name)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2305,7 +2305,7 @@
 }
 
 // void glLogicOp (GLenum opcode);
-static inline void qglLogicOp(GLenum opcode)
+static ID_INLINE void qglLogicOp(GLenum opcode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2319,7 +2319,7 @@
 }
 
 // void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
-static inline void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
+static ID_INLINE void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2333,7 +2333,7 @@
 }
 
 // void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
-static inline void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
+static ID_INLINE void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2347,7 +2347,7 @@
 }
 
 // void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
-static inline void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
+static ID_INLINE void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2361,7 +2361,7 @@
 }
 
 // void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
-static inline void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
+static ID_INLINE void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2375,7 +2375,7 @@
 }
 
 // void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
-static inline void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
+static ID_INLINE void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2389,7 +2389,7 @@
 }
 
 // void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
-static inline void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
+static ID_INLINE void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2403,7 +2403,7 @@
 }
 
 // void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
-static inline void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
+static ID_INLINE void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2417,7 +2417,7 @@
 }
 
 // void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
-static inline void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
+static ID_INLINE void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2431,7 +2431,7 @@
 }
 
 // void glMaterialf (GLenum face, GLenum pname, GLfloat param);
-static inline void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
+static ID_INLINE void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2445,7 +2445,7 @@
 }
 
 // void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
-static inline void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2459,7 +2459,7 @@
 }
 
 // void glMateriali (GLenum face, GLenum pname, GLint param);
-static inline void qglMateriali(GLenum face, GLenum pname, GLint param)
+static ID_INLINE void qglMateriali(GLenum face, GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2473,7 +2473,7 @@
 }
 
 // void glMaterialiv (GLenum face, GLenum pname, const GLint *params);
-static inline void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
+static ID_INLINE void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2487,7 +2487,7 @@
 }
 
 // void glMatrixMode (GLenum mode);
-static inline void qglMatrixMode(GLenum mode)
+static ID_INLINE void qglMatrixMode(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2501,7 +2501,7 @@
 }
 
 // void glMultMatrixd (const GLdouble *m);
-static inline void qglMultMatrixd(const GLdouble *m)
+static ID_INLINE void qglMultMatrixd(const GLdouble *m)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2515,7 +2515,7 @@
 }
 
 // void glMultMatrixf (const GLfloat *m);
-static inline void qglMultMatrixf(const GLfloat *m)
+static ID_INLINE void qglMultMatrixf(const GLfloat *m)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2529,7 +2529,7 @@
 }
 
 // void glNewList (GLuint list, GLenum mode);
-static inline void qglNewList(GLuint list, GLenum mode)
+static ID_INLINE void qglNewList(GLuint list, GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2543,7 +2543,7 @@
 }
 
 // void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
-static inline void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
+static ID_INLINE void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2557,7 +2557,7 @@
 }
 
 // void glNormal3bv (const GLbyte *v);
-static inline void qglNormal3bv(const GLbyte *v)
+static ID_INLINE void qglNormal3bv(const GLbyte *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2571,7 +2571,7 @@
 }
 
 // void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
-static inline void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
+static ID_INLINE void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2585,7 +2585,7 @@
 }
 
 // void glNormal3dv (const GLdouble *v);
-static inline void qglNormal3dv(const GLdouble *v)
+static ID_INLINE void qglNormal3dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2599,7 +2599,7 @@
 }
 
 // void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
-static inline void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+static ID_INLINE void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2613,7 +2613,7 @@
 }
 
 // void glNormal3fv (const GLfloat *v);
-static inline void qglNormal3fv(const GLfloat *v)
+static ID_INLINE void qglNormal3fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2627,7 +2627,7 @@
 }
 
 // void glNormal3i (GLint nx, GLint ny, GLint nz);
-static inline void qglNormal3i(GLint nx, GLint ny, GLint nz)
+static ID_INLINE void qglNormal3i(GLint nx, GLint ny, GLint nz)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2641,7 +2641,7 @@
 }
 
 // void glNormal3iv (const GLint *v);
-static inline void qglNormal3iv(const GLint *v)
+static ID_INLINE void qglNormal3iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2655,7 +2655,7 @@
 }
 
 // void glNormal3s (GLshort nx, GLshort ny, GLshort nz);
-static inline void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
+static ID_INLINE void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2669,7 +2669,7 @@
 }
 
 // void glNormal3sv (const GLshort *v);
-static inline void qglNormal3sv(const GLshort *v)
+static ID_INLINE void qglNormal3sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2683,7 +2683,7 @@
 }
 
 // void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2697,7 +2697,7 @@
 }
 
 // void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-static inline void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
+static ID_INLINE void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2711,7 +2711,7 @@
 }
 
 // void glPassThrough (GLfloat token);
-static inline void qglPassThrough(GLfloat token)
+static ID_INLINE void qglPassThrough(GLfloat token)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2725,7 +2725,7 @@
 }
 
 // void glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
-static inline void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
+static ID_INLINE void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2739,7 +2739,7 @@
 }
 
 // void glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
-static inline void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
+static ID_INLINE void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2753,7 +2753,7 @@
 }
 
 // void glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
-static inline void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
+static ID_INLINE void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2767,7 +2767,7 @@
 }
 
 // void glPixelStoref (GLenum pname, GLfloat param);
-static inline void qglPixelStoref(GLenum pname, GLfloat param)
+static ID_INLINE void qglPixelStoref(GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2781,7 +2781,7 @@
 }
 
 // void glPixelStorei (GLenum pname, GLint param);
-static inline void qglPixelStorei(GLenum pname, GLint param)
+static ID_INLINE void qglPixelStorei(GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2795,7 +2795,7 @@
 }
 
 // void glPixelTransferf (GLenum pname, GLfloat param);
-static inline void qglPixelTransferf(GLenum pname, GLfloat param)
+static ID_INLINE void qglPixelTransferf(GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2809,7 +2809,7 @@
 }
 
 // void glPixelTransferi (GLenum pname, GLint param);
-static inline void qglPixelTransferi(GLenum pname, GLint param)
+static ID_INLINE void qglPixelTransferi(GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2823,7 +2823,7 @@
 }
 
 // void glPixelZoom (GLfloat xfactor, GLfloat yfactor);
-static inline void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
+static ID_INLINE void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2837,7 +2837,7 @@
 }
 
 // void glPointSize (GLfloat size);
-static inline void qglPointSize(GLfloat size)
+static ID_INLINE void qglPointSize(GLfloat size)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2851,7 +2851,7 @@
 }
 
 // void glPolygonMode (GLenum face, GLenum mode);
-static inline void qglPolygonMode(GLenum face, GLenum mode)
+static ID_INLINE void qglPolygonMode(GLenum face, GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2865,7 +2865,7 @@
 }
 
 // void glPolygonOffset (GLfloat factor, GLfloat units);
-static inline void qglPolygonOffset(GLfloat factor, GLfloat units)
+static ID_INLINE void qglPolygonOffset(GLfloat factor, GLfloat units)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2879,7 +2879,7 @@
 }
 
 // void glPolygonStipple (const GLubyte *mask);
-static inline void qglPolygonStipple(const GLubyte *mask)
+static ID_INLINE void qglPolygonStipple(const GLubyte *mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2893,7 +2893,7 @@
 }
 
 // void glPopAttrib (void);
-static inline void qglPopAttrib(void)
+static ID_INLINE void qglPopAttrib(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2907,7 +2907,7 @@
 }
 
 // void glPopClientAttrib (void);
-static inline void qglPopClientAttrib(void)
+static ID_INLINE void qglPopClientAttrib(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2921,7 +2921,7 @@
 }
 
 // void glPopMatrix (void);
-static inline void qglPopMatrix(void)
+static ID_INLINE void qglPopMatrix(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2935,7 +2935,7 @@
 }
 
 // void glPopName (void);
-static inline void qglPopName(void)
+static ID_INLINE void qglPopName(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2949,7 +2949,7 @@
 }
 
 // void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
-static inline void qglPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
+static ID_INLINE void qglPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2963,7 +2963,7 @@
 }
 
 // void glPushAttrib (GLbitfield mask);
-static inline void qglPushAttrib(GLbitfield mask)
+static ID_INLINE void qglPushAttrib(GLbitfield mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2977,7 +2977,7 @@
 }
 
 // void glPushClientAttrib (GLbitfield mask);
-static inline void qglPushClientAttrib(GLbitfield mask)
+static ID_INLINE void qglPushClientAttrib(GLbitfield mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -2991,7 +2991,7 @@
 }
 
 // void glPushMatrix (void);
-static inline void qglPushMatrix(void)
+static ID_INLINE void qglPushMatrix(void)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3005,7 +3005,7 @@
 }
 
 // void glPushName (GLuint name);
-static inline void qglPushName(GLuint name)
+static ID_INLINE void qglPushName(GLuint name)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3019,7 +3019,7 @@
 }
 
 // void glRasterPos2d (GLdouble x, GLdouble y);
-static inline void qglRasterPos2d(GLdouble x, GLdouble y)
+static ID_INLINE void qglRasterPos2d(GLdouble x, GLdouble y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3033,7 +3033,7 @@
 }
 
 // void glRasterPos2dv (const GLdouble *v);
-static inline void qglRasterPos2dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos2dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3047,7 +3047,7 @@
 }
 
 // void glRasterPos2f (GLfloat x, GLfloat y);
-static inline void qglRasterPos2f(GLfloat x, GLfloat y)
+static ID_INLINE void qglRasterPos2f(GLfloat x, GLfloat y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3061,7 +3061,7 @@
 }
 
 // void glRasterPos2fv (const GLfloat *v);
-static inline void qglRasterPos2fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos2fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3075,7 +3075,7 @@
 }
 
 // void glRasterPos2i (GLint x, GLint y);
-static inline void qglRasterPos2i(GLint x, GLint y)
+static ID_INLINE void qglRasterPos2i(GLint x, GLint y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3089,7 +3089,7 @@
 }
 
 // void glRasterPos2iv (const GLint *v);
-static inline void qglRasterPos2iv(const GLint *v)
+static ID_INLINE void qglRasterPos2iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3103,7 +3103,7 @@
 }
 
 // void glRasterPos2s (GLshort x, GLshort y);
-static inline void qglRasterPos2s(GLshort x, GLshort y)
+static ID_INLINE void qglRasterPos2s(GLshort x, GLshort y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3117,7 +3117,7 @@
 }
 
 // void glRasterPos2sv (const GLshort *v);
-static inline void qglRasterPos2sv(const GLshort *v)
+static ID_INLINE void qglRasterPos2sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3131,7 +3131,7 @@
 }
 
 // void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3145,7 +3145,7 @@
 }
 
 // void glRasterPos3dv (const GLdouble *v);
-static inline void qglRasterPos3dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos3dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3159,7 +3159,7 @@
 }
 
 // void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3173,7 +3173,7 @@
 }
 
 // void glRasterPos3fv (const GLfloat *v);
-static inline void qglRasterPos3fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos3fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3187,7 +3187,7 @@
 }
 
 // void glRasterPos3i (GLint x, GLint y, GLint z);
-static inline void qglRasterPos3i(GLint x, GLint y, GLint z)
+static ID_INLINE void qglRasterPos3i(GLint x, GLint y, GLint z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3201,7 +3201,7 @@
 }
 
 // void glRasterPos3iv (const GLint *v);
-static inline void qglRasterPos3iv(const GLint *v)
+static ID_INLINE void qglRasterPos3iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3215,7 +3215,7 @@
 }
 
 // void glRasterPos3s (GLshort x, GLshort y, GLshort z);
-static inline void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
+static ID_INLINE void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3229,7 +3229,7 @@
 }
 
 // void glRasterPos3sv (const GLshort *v);
-static inline void qglRasterPos3sv(const GLshort *v)
+static ID_INLINE void qglRasterPos3sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3243,7 +3243,7 @@
 }
 
 // void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-static inline void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+static ID_INLINE void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3257,7 +3257,7 @@
 }
 
 // void glRasterPos4dv (const GLdouble *v);
-static inline void qglRasterPos4dv(const GLdouble *v)
+static ID_INLINE void qglRasterPos4dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3271,7 +3271,7 @@
 }
 
 // void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-static inline void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+static ID_INLINE void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3285,7 +3285,7 @@
 }
 
 // void glRasterPos4fv (const GLfloat *v);
-static inline void qglRasterPos4fv(const GLfloat *v)
+static ID_INLINE void qglRasterPos4fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3299,7 +3299,7 @@
 }
 
 // void glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
-static inline void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
+static ID_INLINE void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3313,7 +3313,7 @@
 }
 
 // void glRasterPos4iv (const GLint *v);
-static inline void qglRasterPos4iv(const GLint *v)
+static ID_INLINE void qglRasterPos4iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3327,7 +3327,7 @@
 }
 
 // void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
-static inline void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
+static ID_INLINE void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3341,7 +3341,7 @@
 }
 
 // void glRasterPos4sv (const GLshort *v);
-static inline void qglRasterPos4sv(const GLshort *v)
+static ID_INLINE void qglRasterPos4sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3355,7 +3355,7 @@
 }
 
 // void glReadBuffer (GLenum mode);
-static inline void qglReadBuffer(GLenum mode)
+static ID_INLINE void qglReadBuffer(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3369,7 +3369,7 @@
 }
 
 // void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
-static inline void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
+static ID_INLINE void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3383,7 +3383,7 @@
 }
 
 // void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
-static inline void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
+static ID_INLINE void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3397,7 +3397,7 @@
 }
 
 // void glRectdv (const GLdouble *v1, const GLdouble *v2);
-static inline void qglRectdv(const GLdouble *v1, const GLdouble *v2)
+static ID_INLINE void qglRectdv(const GLdouble *v1, const GLdouble *v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3411,7 +3411,7 @@
 }
 
 // void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
-static inline void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
+static ID_INLINE void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3425,7 +3425,7 @@
 }
 
 // void glRectfv (const GLfloat *v1, const GLfloat *v2);
-static inline void qglRectfv(const GLfloat *v1, const GLfloat *v2)
+static ID_INLINE void qglRectfv(const GLfloat *v1, const GLfloat *v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3439,7 +3439,7 @@
 }
 
 // void glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
-static inline void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
+static ID_INLINE void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3453,7 +3453,7 @@
 }
 
 // void glRectiv (const GLint *v1, const GLint *v2);
-static inline void qglRectiv(const GLint *v1, const GLint *v2)
+static ID_INLINE void qglRectiv(const GLint *v1, const GLint *v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3467,7 +3467,7 @@
 }
 
 // void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
-static inline void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
+static ID_INLINE void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3481,7 +3481,7 @@
 }
 
 // void glRectsv (const GLshort *v1, const GLshort *v2);
-static inline void qglRectsv(const GLshort *v1, const GLshort *v2)
+static ID_INLINE void qglRectsv(const GLshort *v1, const GLshort *v2)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3495,7 +3495,7 @@
 }
 
 // GLint glRenderMode (GLenum mode);
-static inline GLint qglRenderMode(GLenum mode)
+static ID_INLINE GLint qglRenderMode(GLenum mode)
 {
     GLint returnValue;
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
@@ -3511,7 +3511,7 @@
 }
 
 // void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-static inline void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3525,7 +3525,7 @@
 }
 
 // void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-static inline void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3539,7 +3539,7 @@
 }
 
 // void glScaled (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglScaled(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglScaled(GLdouble x, GLdouble y, GLdouble z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3553,7 +3553,7 @@
 }
 
 // void glScalef (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglScalef(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglScalef(GLfloat x, GLfloat y, GLfloat z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3567,7 +3567,7 @@
 }
 
 // void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3581,7 +3581,7 @@
 }
 
 // void glSelectBuffer (GLsizei size, GLuint *buffer);
-static inline void qglSelectBuffer(GLsizei size, GLuint *buffer)
+static ID_INLINE void qglSelectBuffer(GLsizei size, GLuint *buffer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3595,7 +3595,7 @@
 }
 
 // void glShadeModel (GLenum mode);
-static inline void qglShadeModel(GLenum mode)
+static ID_INLINE void qglShadeModel(GLenum mode)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3609,7 +3609,7 @@
 }
 
 // void glStencilFunc (GLenum func, GLint ref, GLuint mask);
-static inline void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
+static ID_INLINE void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3623,7 +3623,7 @@
 }
 
 // void glStencilMask (GLuint mask);
-static inline void qglStencilMask(GLuint mask)
+static ID_INLINE void qglStencilMask(GLuint mask)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3637,7 +3637,7 @@
 }
 
 // void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
-static inline void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
+static ID_INLINE void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3651,7 +3651,7 @@
 }
 
 // void glTexCoord1d (GLdouble s);
-static inline void qglTexCoord1d(GLdouble s)
+static ID_INLINE void qglTexCoord1d(GLdouble s)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3665,7 +3665,7 @@
 }
 
 // void glTexCoord1dv (const GLdouble *v);
-static inline void qglTexCoord1dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord1dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3679,7 +3679,7 @@
 }
 
 // void glTexCoord1f (GLfloat s);
-static inline void qglTexCoord1f(GLfloat s)
+static ID_INLINE void qglTexCoord1f(GLfloat s)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3693,7 +3693,7 @@
 }
 
 // void glTexCoord1fv (const GLfloat *v);
-static inline void qglTexCoord1fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord1fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3707,7 +3707,7 @@
 }
 
 // void glTexCoord1i (GLint s);
-static inline void qglTexCoord1i(GLint s)
+static ID_INLINE void qglTexCoord1i(GLint s)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3721,7 +3721,7 @@
 }
 
 // void glTexCoord1iv (const GLint *v);
-static inline void qglTexCoord1iv(const GLint *v)
+static ID_INLINE void qglTexCoord1iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3735,7 +3735,7 @@
 }
 
 // void glTexCoord1s (GLshort s);
-static inline void qglTexCoord1s(GLshort s)
+static ID_INLINE void qglTexCoord1s(GLshort s)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3749,7 +3749,7 @@
 }
 
 // void glTexCoord1sv (const GLshort *v);
-static inline void qglTexCoord1sv(const GLshort *v)
+static ID_INLINE void qglTexCoord1sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3763,7 +3763,7 @@
 }
 
 // void glTexCoord2d (GLdouble s, GLdouble t);
-static inline void qglTexCoord2d(GLdouble s, GLdouble t)
+static ID_INLINE void qglTexCoord2d(GLdouble s, GLdouble t)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3777,7 +3777,7 @@
 }
 
 // void glTexCoord2dv (const GLdouble *v);
-static inline void qglTexCoord2dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord2dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3791,7 +3791,7 @@
 }
 
 // void glTexCoord2f (GLfloat s, GLfloat t);
-static inline void qglTexCoord2f(GLfloat s, GLfloat t)
+static ID_INLINE void qglTexCoord2f(GLfloat s, GLfloat t)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3805,7 +3805,7 @@
 }
 
 // void glTexCoord2fv (const GLfloat *v);
-static inline void qglTexCoord2fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord2fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3819,7 +3819,7 @@
 }
 
 // void glTexCoord2i (GLint s, GLint t);
-static inline void qglTexCoord2i(GLint s, GLint t)
+static ID_INLINE void qglTexCoord2i(GLint s, GLint t)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3833,7 +3833,7 @@
 }
 
 // void glTexCoord2iv (const GLint *v);
-static inline void qglTexCoord2iv(const GLint *v)
+static ID_INLINE void qglTexCoord2iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3847,7 +3847,7 @@
 }
 
 // void glTexCoord2s (GLshort s, GLshort t);
-static inline void qglTexCoord2s(GLshort s, GLshort t)
+static ID_INLINE void qglTexCoord2s(GLshort s, GLshort t)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3861,7 +3861,7 @@
 }
 
 // void glTexCoord2sv (const GLshort *v);
-static inline void qglTexCoord2sv(const GLshort *v)
+static ID_INLINE void qglTexCoord2sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3875,7 +3875,7 @@
 }
 
 // void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
-static inline void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
+static ID_INLINE void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3889,7 +3889,7 @@
 }
 
 // void glTexCoord3dv (const GLdouble *v);
-static inline void qglTexCoord3dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord3dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3903,7 +3903,7 @@
 }
 
 // void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
-static inline void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
+static ID_INLINE void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3917,7 +3917,7 @@
 }
 
 // void glTexCoord3fv (const GLfloat *v);
-static inline void qglTexCoord3fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord3fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3931,7 +3931,7 @@
 }
 
 // void glTexCoord3i (GLint s, GLint t, GLint r);
-static inline void qglTexCoord3i(GLint s, GLint t, GLint r)
+static ID_INLINE void qglTexCoord3i(GLint s, GLint t, GLint r)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3945,7 +3945,7 @@
 }
 
 // void glTexCoord3iv (const GLint *v);
-static inline void qglTexCoord3iv(const GLint *v)
+static ID_INLINE void qglTexCoord3iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3959,7 +3959,7 @@
 }
 
 // void glTexCoord3s (GLshort s, GLshort t, GLshort r);
-static inline void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
+static ID_INLINE void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3973,7 +3973,7 @@
 }
 
 // void glTexCoord3sv (const GLshort *v);
-static inline void qglTexCoord3sv(const GLshort *v)
+static ID_INLINE void qglTexCoord3sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -3987,7 +3987,7 @@
 }
 
 // void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-static inline void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
+static ID_INLINE void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4001,7 +4001,7 @@
 }
 
 // void glTexCoord4dv (const GLdouble *v);
-static inline void qglTexCoord4dv(const GLdouble *v)
+static ID_INLINE void qglTexCoord4dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4015,7 +4015,7 @@
 }
 
 // void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-static inline void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+static ID_INLINE void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4029,7 +4029,7 @@
 }
 
 // void glTexCoord4fv (const GLfloat *v);
-static inline void qglTexCoord4fv(const GLfloat *v)
+static ID_INLINE void qglTexCoord4fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4043,7 +4043,7 @@
 }
 
 // void glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
-static inline void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
+static ID_INLINE void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4057,7 +4057,7 @@
 }
 
 // void glTexCoord4iv (const GLint *v);
-static inline void qglTexCoord4iv(const GLint *v)
+static ID_INLINE void qglTexCoord4iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4071,7 +4071,7 @@
 }
 
 // void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
-static inline void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
+static ID_INLINE void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4085,7 +4085,7 @@
 }
 
 // void glTexCoord4sv (const GLshort *v);
-static inline void qglTexCoord4sv(const GLshort *v)
+static ID_INLINE void qglTexCoord4sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4099,7 +4099,7 @@
 }
 
 // void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4113,7 +4113,7 @@
 }
 
 // void glTexEnvf (GLenum target, GLenum pname, GLfloat param);
-static inline void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4127,7 +4127,7 @@
 }
 
 // void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
-static inline void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4141,7 +4141,7 @@
 }
 
 // void glTexEnvi (GLenum target, GLenum pname, GLint param);
-static inline void qglTexEnvi(GLenum target, GLenum pname, GLint param)
+static ID_INLINE void qglTexEnvi(GLenum target, GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4155,7 +4155,7 @@
 }
 
 // void glTexEnviv (GLenum target, GLenum pname, const GLint *params);
-static inline void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4169,7 +4169,7 @@
 }
 
 // void glTexGend (GLenum coord, GLenum pname, GLdouble param);
-static inline void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
+static ID_INLINE void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4183,7 +4183,7 @@
 }
 
 // void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
-static inline void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
+static ID_INLINE void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4197,7 +4197,7 @@
 }
 
 // void glTexGenf (GLenum coord, GLenum pname, GLfloat param);
-static inline void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4211,7 +4211,7 @@
 }
 
 // void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
-static inline void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4225,7 +4225,7 @@
 }
 
 // void glTexGeni (GLenum coord, GLenum pname, GLint param);
-static inline void qglTexGeni(GLenum coord, GLenum pname, GLint param)
+static ID_INLINE void qglTexGeni(GLenum coord, GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4239,7 +4239,7 @@
 }
 
 // void glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
-static inline void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4253,7 +4253,7 @@
 }
 
 // void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4267,7 +4267,7 @@
 }
 
 // void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4281,7 +4281,7 @@
 }
 
 // void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
-static inline void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
+static ID_INLINE void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4295,7 +4295,7 @@
 }
 
 // void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-static inline void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
+static ID_INLINE void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4309,7 +4309,7 @@
 }
 
 // void glTexParameteri (GLenum target, GLenum pname, GLint param);
-static inline void qglTexParameteri(GLenum target, GLenum pname, GLint param)
+static ID_INLINE void qglTexParameteri(GLenum target, GLenum pname, GLint param)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4323,7 +4323,7 @@
 }
 
 // void glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
-static inline void qglTexParameteriv(GLenum target, GLenum pname, const GLint *params)
+static ID_INLINE void qglTexParameteriv(GLenum target, GLenum pname, const GLint *params)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4337,7 +4337,7 @@
 }
 
 // void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4351,7 +4351,7 @@
 }
 
 // void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-static inline void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
+static ID_INLINE void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4365,7 +4365,7 @@
 }
 
 // void glTranslated (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4379,7 +4379,7 @@
 }
 
 // void glTranslatef (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4393,7 +4393,7 @@
 }
 
 // void glVertex2d (GLdouble x, GLdouble y);
-static inline void qglVertex2d(GLdouble x, GLdouble y)
+static ID_INLINE void qglVertex2d(GLdouble x, GLdouble y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4407,7 +4407,7 @@
 }
 
 // void glVertex2dv (const GLdouble *v);
-static inline void qglVertex2dv(const GLdouble *v)
+static ID_INLINE void qglVertex2dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4421,7 +4421,7 @@
 }
 
 // void glVertex2f (GLfloat x, GLfloat y);
-static inline void qglVertex2f(GLfloat x, GLfloat y)
+static ID_INLINE void qglVertex2f(GLfloat x, GLfloat y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4435,7 +4435,7 @@
 }
 
 // void glVertex2fv (const GLfloat *v);
-static inline void qglVertex2fv(const GLfloat *v)
+static ID_INLINE void qglVertex2fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4449,7 +4449,7 @@
 }
 
 // void glVertex2i (GLint x, GLint y);
-static inline void qglVertex2i(GLint x, GLint y)
+static ID_INLINE void qglVertex2i(GLint x, GLint y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4463,7 +4463,7 @@
 }
 
 // void glVertex2iv (const GLint *v);
-static inline void qglVertex2iv(const GLint *v)
+static ID_INLINE void qglVertex2iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4477,7 +4477,7 @@
 }
 
 // void glVertex2s (GLshort x, GLshort y);
-static inline void qglVertex2s(GLshort x, GLshort y)
+static ID_INLINE void qglVertex2s(GLshort x, GLshort y)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4491,7 +4491,7 @@
 }
 
 // void glVertex2sv (const GLshort *v);
-static inline void qglVertex2sv(const GLshort *v)
+static ID_INLINE void qglVertex2sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4505,7 +4505,7 @@
 }
 
 // void glVertex3d (GLdouble x, GLdouble y, GLdouble z);
-static inline void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
+static ID_INLINE void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4519,7 +4519,7 @@
 }
 
 // void glVertex3dv (const GLdouble *v);
-static inline void qglVertex3dv(const GLdouble *v)
+static ID_INLINE void qglVertex3dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4533,7 +4533,7 @@
 }
 
 // void glVertex3f (GLfloat x, GLfloat y, GLfloat z);
-static inline void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
+static ID_INLINE void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4547,7 +4547,7 @@
 }
 
 // void glVertex3fv (const GLfloat *v);
-static inline void qglVertex3fv(const GLfloat *v)
+static ID_INLINE void qglVertex3fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4561,7 +4561,7 @@
 }
 
 // void glVertex3i (GLint x, GLint y, GLint z);
-static inline void qglVertex3i(GLint x, GLint y, GLint z)
+static ID_INLINE void qglVertex3i(GLint x, GLint y, GLint z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4575,7 +4575,7 @@
 }
 
 // void glVertex3iv (const GLint *v);
-static inline void qglVertex3iv(const GLint *v)
+static ID_INLINE void qglVertex3iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4589,7 +4589,7 @@
 }
 
 // void glVertex3s (GLshort x, GLshort y, GLshort z);
-static inline void qglVertex3s(GLshort x, GLshort y, GLshort z)
+static ID_INLINE void qglVertex3s(GLshort x, GLshort y, GLshort z)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4603,7 +4603,7 @@
 }
 
 // void glVertex3sv (const GLshort *v);
-static inline void qglVertex3sv(const GLshort *v)
+static ID_INLINE void qglVertex3sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4617,7 +4617,7 @@
 }
 
 // void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-static inline void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
+static ID_INLINE void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4631,7 +4631,7 @@
 }
 
 // void glVertex4dv (const GLdouble *v);
-static inline void qglVertex4dv(const GLdouble *v)
+static ID_INLINE void qglVertex4dv(const GLdouble *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4645,7 +4645,7 @@
 }
 
 // void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-static inline void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
+static ID_INLINE void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4659,7 +4659,7 @@
 }
 
 // void glVertex4fv (const GLfloat *v);
-static inline void qglVertex4fv(const GLfloat *v)
+static ID_INLINE void qglVertex4fv(const GLfloat *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4673,7 +4673,7 @@
 }
 
 // void glVertex4i (GLint x, GLint y, GLint z, GLint w);
-static inline void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
+static ID_INLINE void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4687,7 +4687,7 @@
 }
 
 // void glVertex4iv (const GLint *v);
-static inline void qglVertex4iv(const GLint *v)
+static ID_INLINE void qglVertex4iv(const GLint *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4701,7 +4701,7 @@
 }
 
 // void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
-static inline void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
+static ID_INLINE void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4715,7 +4715,7 @@
 }
 
 // void glVertex4sv (const GLshort *v);
-static inline void qglVertex4sv(const GLshort *v)
+static ID_INLINE void qglVertex4sv(const GLshort *v)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4729,7 +4729,7 @@
 }
 
 // void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-static inline void qglVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+static ID_INLINE void qglVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)
@@ -4743,7 +4743,7 @@
 }
 
 // void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
-static inline void qglViewport(GLint x, GLint y, GLsizei width, GLsizei height)
+static ID_INLINE void qglViewport(GLint x, GLint y, GLsizei width, GLsizei height)
 {
 #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
     if (QGLLogGLCalls)

Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/common.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -2812,9 +2812,8 @@
 
 }
 
-#if !( defined __VECTORC )
 #if !( defined __GNUC__ )  // GNU versions in linux_common.c
-#if ((!id386) && (!defined __i386__)) // rcg010212 - for PPC
+#if !id386
 
 void Com_Memcpy (void* dest, const void* src, const size_t count)
 {
@@ -3126,7 +3125,6 @@
 }
 #endif
 #endif 
-#endif // bk001208 - memset/memcpy assembly, Q_acos needed (RC4)
 //------------------------------------------------------------------------
 
 

Modified: trunk/code/qcommon/md4.c
===================================================================
--- trunk/code/qcommon/md4.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/md4.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -38,13 +38,8 @@
 void MD4Update (MD4_CTX *, const unsigned char *, unsigned int);
 void MD4Final (unsigned char [16], MD4_CTX *);
 
-#ifndef __VECTORC  
 void Com_Memset (void* dest, const int val, const size_t count);
 void Com_Memcpy (void* dest, const void* src, const size_t count);
-#else
-#define Com_Memset memset
-#define Com_Memcpy memcpy
-#endif
 
 /* MD4C.C - RSA Data Security, Inc., MD4 message-digest algorithm */
 /* Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.

Modified: trunk/code/qcommon/q_math.c
===================================================================
--- trunk/code/qcommon/q_math.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/q_math.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -21,9 +21,16 @@
 */
 //
 // q_math.c -- stateless support routines that are included in each code module
-#include "q_shared.h"
 
+// Some of the vector functions are static inline in q_shared.h. q3asm
+// doesn't understand static functions though, so we only want them in
+// one file. That's what this is about.
+#ifdef Q3_VM
+#define __Q3_VM_MATH
+#endif
 
+#include "q_shared.h"
+
 vec3_t	vec3_origin = {0,0,0};
 vec3_t	axisDefault[3] = { { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } };
 
@@ -153,63 +160,6 @@
 	return 2.0 * ( Q_random( seed ) - 0.5 );
 }
 
-#ifdef Q3_VM
-
-int VectorCompare( const vec3_t v1, const vec3_t v2 ) {
-	if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) {
-		return 0;
-	}			
-	return 1;
-}
-
-vec_t VectorLength( const vec3_t v ) {
-	return (vec_t)sqrt (v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);
-}
-
-vec_t VectorLengthSquared( const vec3_t v ) {
-	return (v[0]*v[0] + v[1]*v[1] + v[2]*v[2]);
-}
-
-vec_t Distance( const vec3_t p1, const vec3_t p2 ) {
-	vec3_t	v;
-
-	VectorSubtract (p2, p1, v);
-	return VectorLength( v );
-}
-
-vec_t DistanceSquared( const vec3_t p1, const vec3_t p2 ) {
-	vec3_t	v;
-
-	VectorSubtract (p2, p1, v);
-	return v[0]*v[0] + v[1]*v[1] + v[2]*v[2];
-}
-
-// fast vector normalize routine that does not check to make sure
-// that length != 0, nor does it return length, uses rsqrt approximation
-void VectorNormalizeFast( vec3_t v )
-{
-	float ilength;
-
-	ilength = Q_rsqrt( DotProduct( v, v ) );
-
-	v[0] *= ilength;
-	v[1] *= ilength;
-	v[2] *= ilength;
-}
-
-void VectorInverse( vec3_t v ){
-	v[0] = -v[0];
-	v[1] = -v[1];
-	v[2] = -v[2];
-}
-
-void CrossProduct( const vec3_t v1, const vec3_t v2, vec3_t cross ) {
-	cross[0] = v1[1]*v2[2] - v1[2]*v2[1];
-	cross[1] = v1[2]*v2[0] - v1[0]*v2[2];
-	cross[2] = v1[0]*v2[1] - v1[1]*v2[0];
-}
-#endif
-
 //=======================================================
 
 signed char ClampChar( int i ) {
@@ -736,11 +686,8 @@
 ==================
 */
 
-// if not GNU x86 and configured to use asm
-#if !( (defined __GNUC__) && (defined __i386__) && (!defined C_ONLY))
+#if !id386
 
-#if defined Q3_VM || defined C_ONLY || !id386 || defined __VECTORC
-
 int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
 {
 	float	dist1, dist2;
@@ -804,6 +751,8 @@
 
 	return sides;
 }
+#elif __GNUC__
+// use matha.s
 #else
 #pragma warning( disable: 4035 )
 
@@ -1039,7 +988,6 @@
 #pragma warning( default: 4035 )
 
 #endif
-#endif
 
 /*
 =================

Modified: trunk/code/qcommon/q_platform.h
===================================================================
--- trunk/code/qcommon/q_platform.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/q_platform.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -23,68 +23,82 @@
 #ifndef __Q_PLATFORM_H
 #define __Q_PLATFORM_H
 
-// this is the define for determining if we have an asm version of a C function
-#if (defined _M_IX86 || defined __i386__) && !defined __sun  && !defined Q3_VM
-#define id386	1
+// this is for determining if we have an asm version of a C function
+#ifdef Q3_VM
+
+#define id386 0
+#define idppc 0
+#define idppc_altivec 0
+
 #else
-#define id386	0
+
+#if (defined _M_IX86 || defined __i386__) && \
+		!defined __sun && !defined(C_ONLY)
+#define id386 1
+#else
+#define id386 0
 #endif
 
-#if (defined(powerc) || defined(powerpc) || defined(ppc) || defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY)
-#define idppc	1
+#if (defined(powerc) || defined(powerpc) || defined(ppc) || \
+		defined(__ppc) || defined(__ppc__)) && !defined(C_ONLY)
+#define idppc 1
 #if defined(__VEC__)
 #define idppc_altivec 1
 #else
 #define idppc_altivec 0
 #endif
 #else
-#define idppc	0
+#define idppc 0
 #define idppc_altivec 0
 #endif
 
+#endif
+
+#ifndef __ASM_I386__ // don't include the C bits if included from qasm.h
+
 // for windows fastcall option
 
-#define	QDECL
+#define QDECL
 
 short	ShortSwap (short l);
 int		LongSwap (int l);
 float	FloatSwap (const float *f);
 
-//======================= WIN32 DEFINES =================================
+//================================================================= WIN32 ===
 
 #ifdef _WIN32
 
 #undef QDECL
-#define	QDECL	__cdecl
+#define QDECL __cdecl
 
 // buildstring will be incorporated into the version string
 #ifdef _MSC_VER
 #ifdef NDEBUG
 #ifdef _M_IX86
-#define	CPUSTRING	"win-x86"
+#define CPUSTRING "win-x86"
 #elif defined _M_ALPHA
-#define	CPUSTRING	"win-AXP"
+#define CPUSTRING "win-AXP"
 #endif
 #else
 #ifdef _M_IX86
-#define	CPUSTRING	"win-x86-debug"
+#define CPUSTRING "win-x86-debug"
 #elif defined _M_ALPHA
-#define	CPUSTRING	"win-AXP-debug"
+#define CPUSTRING "win-AXP-debug"
 #endif
 #endif
 #elif defined __MINGW32__
 #ifdef NDEBUG
 #ifdef __i386__
-#define	CPUSTRING	"mingw-x86"
+#define CPUSTRING "mingw-x86"
 #endif
 #else
 #ifdef __i386__
-#define	CPUSTRING	"mingw-x86-debug"
+#define CPUSTRING "mingw-x86-debug"
 #endif
 #endif
 #endif
 
-#define ID_INLINE __inline 
+#define ID_INLINE __inline
 
 static ID_INLINE short BigShort( short l) { return ShortSwap(l); }
 #define LittleShort
@@ -93,88 +107,89 @@
 static ID_INLINE float BigFloat(const float l) { return FloatSwap(&l); }
 #define LittleFloat
 
-#define	PATH_SEP '\\'
+#define PATH_SEP '\\'
 
 #endif
 
-//======================= MAC OS X DEFINES =====================
+//============================================================== MAC OS X ===
 
 #if defined(MACOS_X)
 
 #define __cdecl
 #define __declspec(x)
 #define stricmp strcasecmp
-#define ID_INLINE inline 
+#define ID_INLINE inline
 
 #ifdef __ppc__
-#define CPUSTRING	"MacOSX-ppc"
+#define CPUSTRING "MacOSX-ppc"
 #elif defined __i386__
-#define CPUSTRING	"MacOSX-i386"
+#define CPUSTRING "MacOSX-i386"
 #else
-#define CPUSTRING	"MacOSX-other"
+#define CPUSTRING "MacOSX-other"
 #endif
 
-#define	PATH_SEP	'/'
+#define PATH_SEP '/'
 
 #define __rlwimi(out, in, shift, maskBegin, maskEnd) \
 	asm("rlwimi %0,%1,%2,%3,%4" : "=r" (out) : "r" (in), \
 			"i" (shift), "i" (maskBegin), "i" (maskEnd))
 #define __dcbt(addr, offset) asm("dcbt %0,%1" : : "b" (addr), "r" (offset))
 
-static inline unsigned int __lwbrx(register void *addr, register int offset) {
-    register unsigned int word;
-    
-    asm("lwbrx %0,%2,%1" : "=r" (word) : "r" (addr), "b" (offset));
-    return word;
+static ID_INLINE unsigned int __lwbrx(register void *addr,
+		register int offset) {
+	register unsigned int word;
+
+	asm("lwbrx %0,%2,%1" : "=r" (word) : "r" (addr), "b" (offset));
+	return word;
 }
 
-static inline unsigned short __lhbrx(register void *addr, register int offset) {
-    register unsigned short halfword;
-    
-    asm("lhbrx %0,%2,%1" : "=r" (halfword) : "r" (addr), "b" (offset));
-    return halfword;
+static ID_INLINE unsigned short __lhbrx(register void *addr,
+		register int offset) {
+	register unsigned short halfword;
+
+	asm("lhbrx %0,%2,%1" : "=r" (halfword) : "r" (addr), "b" (offset));
+	return halfword;
 }
 
-static inline float __fctiw(register float f) {
-    register float fi;
-    
-    asm("fctiw %0,%1" : "=f" (fi) : "f" (f));
+static ID_INLINE float __fctiw(register float f) {
+	register float fi;
 
-    return fi;
+	asm("fctiw %0,%1" : "=f" (fi) : "f" (f));
+	return fi;
 }
 
 #define BigShort
-static inline short LittleShort(short l) { return ShortSwap(l); }
+static ID_INLINE short LittleShort(short l) { return ShortSwap(l); }
 #define BigLong
-static inline int LittleLong (int l) { return LongSwap(l); }
+static ID_INLINE int LittleLong(int l) { return LongSwap(l); }
 #define BigFloat
-static inline float LittleFloat (const float l) { return FloatSwap(&l); }
+static ID_INLINE float LittleFloat(const float l) { return FloatSwap(&l); }
 
 #endif
 
-//======================= MAC DEFINES =================================
+//=================================================================== MAC ===
 
 #ifdef __MACOS__
 
 #include <MacTypes.h>
-#define ID_INLINE inline 
+#define ID_INLINE inline
 
-#define	CPUSTRING	"MacOS-PPC"
+#define CPUSTRING "MacOS-PPC"
 
-#define	PATH_SEP ':'
+#define PATH_SEP ':'
 
 void Sys_PumpEvents( void );
 
 #define BigShort
-static inline short LittleShort(short l) { return ShortSwap(l); }
+static ID_INLINE short LittleShort(short l) { return ShortSwap(l); }
 #define BigLong
-static inline int LittleLong (int l) { return LongSwap(l); }
+static ID_INLINE int LittleLong(int l) { return LongSwap(l); }
 #define BigFloat
-static inline float LittleFloat (const float l) { return FloatSwap(&l); }
+static ID_INLINE float LittleFloat(const float l) { return FloatSwap(&l); }
 
 #endif
 
-//======================= LINUX DEFINES =================================
+//================================================================= LINUX ===
 
 // the mac compiler can't handle >32k of locals, so we
 // just waste space and make big arrays static...
@@ -183,64 +198,65 @@
 // bk001205 - from Makefile
 #define stricmp strcasecmp
 
-#define ID_INLINE inline 
+#define ID_INLINE inline
 
 #ifdef __i386__
-#define	CPUSTRING	"linux-i386"
+#define CPUSTRING "linux-i386"
 #elif defined __axp__
-#define	CPUSTRING	"linux-alpha"
+#define CPUSTRING "linux-alpha"
 #elif defined __x86_64__
-#define	CPUSTRING	"linux-x86_64"
+#define CPUSTRING "linux-x86_64"
 #elif defined __powerpc64__
-#define	CPUSTRING	"linux-ppc64"
+#define CPUSTRING "linux-ppc64"
 #elif defined __powerpc__
-#define	CPUSTRING	"linux-ppc"
+#define CPUSTRING "linux-ppc"
 #elif defined __s390__
-#define	CPUSTRING	"linux-s390"
+#define CPUSTRING "linux-s390"
 #elif defined __s390x__
-#define	CPUSTRING	"linux-s390x"
+#define CPUSTRING "linux-s390x"
 #elif defined __ia64__
-#define	CPUSTRING	"linux-ia64"
+#define CPUSTRING "linux-ia64"
 #else
-#define	CPUSTRING	"linux-other"
+#define CPUSTRING "linux-other"
 #endif
 
-#define	PATH_SEP '/'
+#define PATH_SEP '/'
 
 #if __FLOAT_WORD_ORDER == __LITTLE_ENDIAN
-inline static short BigShort( short l) { return ShortSwap(l); }
+ID_INLINE static short BigShort( short l) { return ShortSwap(l); }
 #define LittleShort
-inline static int BigLong(int l) { return LongSwap(l); }
+ID_INLINE static int BigLong(int l) { return LongSwap(l); }
 #define LittleLong
-inline static float BigFloat(const float l) { return FloatSwap(&l); }
+ID_INLINE static float BigFloat(const float l) { return FloatSwap(&l); }
 #define LittleFloat
 #else
 #define BigShort
-inline static short LittleShort(short l) { return ShortSwap(l); }
+ID_INLINE static short LittleShort(short l) { return ShortSwap(l); }
 #define BigLong
-inline static int LittleLong (int l) { return LongSwap(l); }
+ID_INLINE static int LittleLong(int l) { return LongSwap(l); }
 #define BigFloat
-inline static float LittleFloat (const float l) { return FloatSwap(&l); }
+ID_INLINE static float LittleFloat(const float l) { return FloatSwap(&l); }
 #endif
 
 #endif
 
-//======================= FreeBSD DEFINES =====================
+//=============================================================== FreeBSD ===
+
 #ifdef __FreeBSD__ // rb010123
 
 #define stricmp strcasecmp
 
-#define ID_INLINE inline 
+#define ID_INLINE inline
 
 #ifdef __i386__
-#define CPUSTRING       "freebsd-i386"
+#define CPUSTRING "freebsd-i386"
 #elif defined __axp__
-#define CPUSTRING       "freebsd-alpha"
+#define CPUSTRING "freebsd-alpha"
 #else
-#define CPUSTRING       "freebsd-other"
+#define CPUSTRING "freebsd-other"
 #endif
 
-#define	PATH_SEP '/'
+#define PATH_SEP '/'
 
 #if !idppc
 static short BigShort( short l) { return ShortSwap(l); }
@@ -253,14 +269,14 @@
 #define BigShort
 static short LittleShort(short l) { return ShortSwap(l); }
 #define BigLong
-static int LittleLong (int l) { return LongSwap(l); }
+static int LittleLong(int l) { return LongSwap(l); }
 #define BigFloat
-static float LittleFloat (const float l) { return FloatSwap(&l); }
+static float LittleFloat(const float l) { return FloatSwap(&l); }
 #endif
 
 #endif
 
-//======================= SUNOS DEFINES =================================
+//================================================================= SUNOS ===
 
 #ifdef __sun
 
@@ -270,30 +286,30 @@
 // bk001205 - from Makefile
 #define stricmp strcasecmp
 
-#define ID_INLINE inline 
+#define ID_INLINE inline
 
 #ifdef __i386__
-#define	CPUSTRING	"Solaris-i386"
+#define CPUSTRING "Solaris-i386"
 #elif defined __sparc
-#define	CPUSTRING	"Solaris-sparc"
+#define CPUSTRING "Solaris-sparc"
 #endif
 
-#define	PATH_SEP '/'
+#define PATH_SEP '/'
 
 #if defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)
 #define BigShort
-inline static short LittleShort(short l) { return ShortSwap(l); }
+ID_INLINE static short LittleShort(short l) { return ShortSwap(l); }
 #define BigLong
-inline static int LittleLong (int l) { return LongSwap(l); }
+ID_INLINE static int LittleLong(int l) { return LongSwap(l); }
 #define BigFloat
-inline static float LittleFloat (const float l) { return FloatSwap(&l); }
+ID_INLINE static float LittleFloat(const float l) { return FloatSwap(&l); }
 
 #elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
-inline static short BigShort( short l) { return ShortSwap(l); }
+ID_INLINE static short BigShort( short l) { return ShortSwap(l); }
 #define LittleShort
-inline static int BigLong(int l) { return LongSwap(l); }
+ID_INLINE static int BigLong(int l) { return LongSwap(l); }
 #define LittleLong
-inline static float BigFloat(const float l) { return FloatSwap(&l); }
+ID_INLINE static float BigFloat(const float l) { return FloatSwap(&l); }
 #define LittleFloat
 
 #else
@@ -302,8 +318,27 @@
 
 #endif
 
-#ifndef Q3_VM
+//================================================================== Q3VM ===
 
+#ifdef Q3_VM
+
+#define ID_INLINE
+
+#define CPUSTRING "q3vm"
+
+#define PATH_SEP '/'
+
+#define LittleShort
+#define LittleLong
+#define LittleFloat
+#define BigShort
+#define BigLong
+#define BigFloat
+
+#endif
+
+//===========================================================================
+
 //catch missing defines in above blocks
 #ifndef CPUSTRING
 #error "CPUSTRING not defined"

Modified: trunk/code/qcommon/q_shared.h
===================================================================
--- trunk/code/qcommon/q_shared.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/q_shared.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -236,13 +236,8 @@
 #define Snd_Memset Com_Memset
 #endif
 
-#if !( defined __VECTORC )
 void Com_Memset (void* dest, const int val, const size_t count);
 void Com_Memcpy (void* dest, const void* src, const size_t count);
-#else
-#define Com_Memset memset
-#define Com_Memcpy memcpy
-#endif
 
 #define CIN_system	1
 #define CIN_loop	2
@@ -346,7 +341,7 @@
 
 #if idppc
 
-static inline float Q_rsqrt( float number ) {
+static ID_INLINE float Q_rsqrt( float number ) {
 		float x = 0.5f * number;
                 float y;
 #ifdef __GNUC__            
@@ -358,7 +353,7 @@
 	}
 
 #ifdef __GNUC__            
-static inline float Q_fabs(float x) {
+static ID_INLINE float Q_fabs(float x) {
     float abs_x;
     
     asm("fabs %0,%1" : "=f" (abs_x) : "f" (x));
@@ -410,7 +405,6 @@
 	float	v[3];
 } vec3struct_t;
 #define VectorCopy(a,b)	(*(vec3struct_t *)b=*(vec3struct_t *)a)
-#define ID_INLINE static
 #endif
 #endif
 
@@ -437,7 +431,7 @@
 void ClearBounds( vec3_t mins, vec3_t maxs );
 void AddPointToBounds( const vec3_t v, vec3_t mins, vec3_t maxs );
 
-#ifndef Q3_VM
+#if !defined( Q3_VM ) || ( defined( Q3_VM ) && defined( __Q3_VM_MATH ) )
 static ID_INLINE int VectorCompare( const vec3_t v1, const vec3_t v2 ) {
 	if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) {
 		return 0;

Modified: trunk/code/qcommon/qcommon.h
===================================================================
--- trunk/code/qcommon/qcommon.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/qcommon.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -333,7 +333,7 @@
 void	*VM_ExplicitArgPtr( vm_t *vm, long intValue );
 
 #define	VMA(x) VM_ArgPtr(args[x])
-static __inline float _vmf(long x)
+static ID_INLINE float _vmf(long x)
 {
 	union {
 		long l;

Modified: trunk/code/qcommon/vm.c
===================================================================
--- trunk/code/qcommon/vm.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/vm.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -330,7 +330,7 @@
 ============
 */
 long QDECL VM_DllSyscall( long arg, ... ) {
-#if ((defined __GNUC__) && !(defined __i386__))
+#if !id386
   // rcg010206 - see commentary above
   long args[16];
   int i;
@@ -738,7 +738,7 @@
                             args[4],  args[5],  args[6], args[7],
                             args[8],  args[9]);
 	} else {
-#ifdef __i386__ // i386 calling convention doesn't need conversion
+#if id386 // i386 calling convention doesn't need conversion
 #ifndef NO_VM_COMPILED
 		if ( vm->compiled )
 			r = VM_CallCompiled( vm, (int*)&callnum );

Modified: trunk/code/qcommon/vm_interpreted.c
===================================================================
--- trunk/code/qcommon/vm_interpreted.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/qcommon/vm_interpreted.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -114,7 +114,7 @@
 
 #if idppc
     #if defined(__GNUC__)
-        static inline unsigned int loadWord(void *addr) {
+        static ID_INLINE unsigned int loadWord(void *addr) {
             unsigned int word;
             
             asm("lwbrx %0,0,%1" : "=r" (word) : "r" (addr));
@@ -124,7 +124,7 @@
 	#define loadWord(addr) __lwbrx(addr,0)
     #endif
 #else
-    static inline int loadWord(void *addr) {
+    static ID_INLINE int loadWord(void *addr) {
 	int word;
 	memcpy(&word, addr, 4);
 	return LittleLong(word);

Modified: trunk/code/renderer/tr_local.h
===================================================================
--- trunk/code/renderer/tr_local.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/renderer/tr_local.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -34,7 +34,7 @@
 typedef unsigned int glIndex_t;
 
 // fast float to int conversion
-#if id386 && !( (defined __GNUC__ ) && (defined __i386__ ) ) // rb010123
+#if id386 && !defined(__GNUC__)
 long myftol( float f );
 #else
 #define	myftol(x) ((int)(x))

Modified: trunk/code/renderer/tr_main.c
===================================================================
--- trunk/code/renderer/tr_main.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/renderer/tr_main.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -1004,7 +1004,7 @@
 R_Radix
 ===============
 */
-static __inline void R_Radix( int byte, int size, drawSurf_t *source, drawSurf_t *dest )
+static ID_INLINE void R_Radix( int byte, int size, drawSurf_t *source, drawSurf_t *dest )
 {
   int           count[ 256 ] = { 0 };
   int           index[ 256 ];

Modified: trunk/code/renderer/tr_shade_calc.c
===================================================================
--- trunk/code/renderer/tr_shade_calc.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/renderer/tr_shade_calc.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -1022,7 +1022,7 @@
 
 
 
-#if id386 && !( (defined __GNUC__ ) && (defined __i386__ ) ) // rb010123
+#if id386 && !defined(__GNUC__)
 
 long myftol( float f ) {
 	static int tmp;

Modified: trunk/code/unix/Makefile
===================================================================
--- trunk/code/unix/Makefile	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/Makefile	2005-11-04 22:32:00 UTC (rev 269)
@@ -506,7 +506,7 @@
 DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
 DO_SHLIB_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
 DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
-DO_DED_CC=$(CC) -DDEDICATED -DC_ONLY $(CFLAGS) -o $@ -c $<
+DO_DED_CC=$(CC) -DDEDICATED $(CFLAGS) -o $@ -c $<
 DO_WINDRES=$(WINDRES) -i $< -o $@
 
 #############################################################################
@@ -1111,7 +1111,8 @@
   $(B)/ded/null_snddma.o
 
 ifeq ($(ARCH),i386)
-  Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o $(B)/ded/snapvectora.o
+  Q3DOBJ += $(B)/ded/vm_x86.o $(B)/ded/ftola.o \
+      $(B)/ded/snapvectora.o $(B)/ded/matha.o
 endif
 
 ifeq ($(ARCH),x86_64)
@@ -1196,6 +1197,7 @@
 
 $(B)/ded/ftola.o : $(UDIR)/ftola.s; $(DO_AS)
 $(B)/ded/snapvectora.o : $(UDIR)/snapvectora.s; $(DO_AS)
+$(B)/ded/matha.o : $(UDIR)/matha.s; $(DO_AS)
 
 $(B)/ded/vm_x86.o : $(CMDIR)/vm_x86.c; $(DO_DED_CC)
 $(B)/ded/vm_x86_64.o : $(CMDIR)/vm_x86_64.c; $(DO_DED_CC)

Modified: trunk/code/unix/ftola.s
===================================================================
--- trunk/code/unix/ftola.s	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/ftola.s	2005-11-04 22:32:00 UTC (rev 269)
@@ -27,7 +27,6 @@
 // 23/09/05 Ported to gas by intel2gas, best supporting actor Tim Angus
 // <tim at ngus.net>
 
-#define GLQUAKE 1 // don't include unneeded defs
 #include "qasm.h"
 
 #ifdef id386

Modified: trunk/code/unix/matha.s
===================================================================
--- trunk/code/unix/matha.s	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/matha.s	2005-11-04 22:32:00 UTC (rev 269)
@@ -23,7 +23,6 @@
 // math.s
 // x86 assembly-language math routines.
 
-#define GLQUAKE	1	// don't include unneeded defs
 #include "qasm.h"
 
 

Modified: trunk/code/unix/qasm.h
===================================================================
--- trunk/code/unix/qasm.h	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/qasm.h	2005-11-04 22:32:00 UTC (rev 269)
@@ -22,6 +22,8 @@
 #ifndef __ASM_I386__
 #define __ASM_I386__
 
+#include "../qcommon/q_platform.h"
+
 #ifdef __MINGW32__
 #undef ELF
 #endif
@@ -32,251 +34,6 @@
 #define C(label) _##label
 #endif
 
-
-//#define GLQUAKE	1
-
-#if defined(_WIN32) && !defined(WINDED)
-
-#if defined(_M_IX86)
-#define __i386__	1
-#endif
-
-#endif
-
-#ifdef __i386__
-#define id386	1
-#else
-#define id386	0
-#endif
-
-// !!! must be kept the same as in d_iface.h !!!
-#define TRANSPARENT_COLOR	255
-
-#ifndef GLQUAKE
-	.extern C(d_zistepu)
-	.extern C(d_pzbuffer)
-	.extern C(d_zistepv)
-	.extern C(d_zrowbytes)
-	.extern C(d_ziorigin)
-	.extern C(r_turb_s)
-	.extern C(r_turb_t)
-	.extern C(r_turb_pdest)
-	.extern C(r_turb_spancount)
-	.extern C(r_turb_turb)
-	.extern C(r_turb_pbase)
-	.extern C(r_turb_sstep)
-	.extern C(r_turb_tstep)
-	.extern	C(r_bmodelactive)
-	.extern	C(d_sdivzstepu)
-	.extern	C(d_tdivzstepu)
-	.extern	C(d_sdivzstepv)
-	.extern	C(d_tdivzstepv)
-	.extern	C(d_sdivzorigin)
-	.extern	C(d_tdivzorigin)
-	.extern	C(sadjust)
-	.extern	C(tadjust)
-	.extern	C(bbextents)
-	.extern	C(bbextentt)
-	.extern	C(cacheblock)
-	.extern	C(d_viewbuffer)
-	.extern	C(cachewidth)
-	.extern	C(d_pzbuffer)
-	.extern	C(d_zrowbytes)
-	.extern	C(d_zwidth)
-	.extern C(d_scantable)
-	.extern C(r_lightptr)
-	.extern C(r_numvblocks)
-	.extern C(prowdestbase)
-	.extern C(pbasesource)
-	.extern C(r_lightwidth)
-	.extern C(lightright)
-	.extern C(lightrightstep)
-	.extern C(lightdeltastep)
-	.extern C(lightdelta)
-	.extern C(lightright)
-	.extern C(lightdelta)
-	.extern C(sourcetstep)
-	.extern C(surfrowbytes)
-	.extern C(lightrightstep)
-	.extern C(lightdeltastep)
-	.extern C(r_sourcemax)
-	.extern C(r_stepback)
-	.extern C(colormap)
-	.extern C(blocksize)
-	.extern C(sourcesstep)
-	.extern C(lightleft)
-	.extern C(blockdivshift)
-	.extern C(blockdivmask)
-	.extern C(lightleftstep)
-	.extern C(r_origin)
-	.extern C(r_ppn)
-	.extern C(r_pup)
-	.extern C(r_pright)
-	.extern C(ycenter)
-	.extern C(xcenter)
-	.extern C(d_vrectbottom_particle)
-	.extern C(d_vrectright_particle)
-	.extern C(d_vrecty)
-	.extern C(d_vrectx)
-	.extern C(d_pix_shift)
-	.extern C(d_pix_min)
-	.extern C(d_pix_max)
-	.extern C(d_y_aspect_shift)
-	.extern C(screenwidth)
-	.extern C(r_leftclipped)
-	.extern C(r_leftenter)
-	.extern C(r_rightclipped)
-	.extern C(r_rightenter)
-	.extern C(modelorg)
-	.extern C(xscale)
-	.extern C(r_refdef)
-	.extern C(yscale)
-	.extern C(r_leftexit)
-	.extern C(r_rightexit)
-	.extern C(r_lastvertvalid)
-	.extern C(cacheoffset)
-	.extern C(newedges)
-	.extern C(removeedges)
-	.extern C(r_pedge)
-	.extern C(r_framecount)
-	.extern C(r_u1)
-	.extern C(r_emitted)
-	.extern C(edge_p)
-	.extern C(surface_p)
-	.extern C(surfaces)
-	.extern C(r_lzi1)
-	.extern C(r_v1)
-	.extern C(r_ceilv1)
-	.extern C(r_nearzi)
-	.extern C(r_nearzionly)
-	.extern C(edge_aftertail)
-	.extern C(edge_tail)
-	.extern C(current_iv)
-	.extern C(edge_head_u_shift20)
-	.extern C(span_p)
-	.extern C(edge_head)
-	.extern C(fv)
-	.extern C(edge_tail_u_shift20)
-	.extern C(r_apverts)
-	.extern C(r_anumverts)
-	.extern C(aliastransform)
-	.extern C(r_avertexnormals)
-	.extern C(r_plightvec)
-	.extern C(r_ambientlight)
-	.extern C(r_shadelight)
-	.extern C(aliasxcenter)
-	.extern C(aliasycenter)
-	.extern C(a_sstepxfrac)
-	.extern C(r_affinetridesc)
-	.extern C(acolormap)
-	.extern C(d_pcolormap)
-	.extern C(r_affinetridesc)
-	.extern C(d_sfrac)
-	.extern C(d_ptex)
-	.extern C(d_pedgespanpackage)
-	.extern C(d_tfrac)
-	.extern C(d_light)
-	.extern C(d_zi)
-	.extern C(d_pdest)
-	.extern C(d_pz)
-	.extern C(d_aspancount)
-	.extern C(erroradjustup)
-	.extern C(errorterm)
-	.extern C(d_xdenom)
-	.extern C(r_p0)
-	.extern C(r_p1)
-	.extern C(r_p2)
-	.extern C(a_tstepxfrac)
-	.extern C(r_sstepx)
-	.extern C(r_tstepx)
-	.extern C(a_ststepxwhole)
-	.extern C(zspantable)
-	.extern C(skintable)
-	.extern C(r_zistepx)
-	.extern C(erroradjustdown)
-	.extern C(d_countextrastep)
-	.extern C(ubasestep)
-	.extern C(a_ststepxwhole)
-	.extern C(a_tstepxfrac)
-	.extern C(r_lstepx)
-	.extern C(a_spans)
-	.extern C(erroradjustdown)
-	.extern C(d_pdestextrastep)
-	.extern C(d_pzextrastep)
-	.extern C(d_sfracextrastep)
-	.extern C(d_ptexextrastep)
-	.extern C(d_countextrastep)
-	.extern C(d_tfracextrastep)
-	.extern C(d_lightextrastep)
-	.extern C(d_ziextrastep)
-	.extern C(d_pdestbasestep)
-	.extern C(d_pzbasestep)
-	.extern C(d_sfracbasestep)
-	.extern C(d_ptexbasestep)
-	.extern C(ubasestep)
-	.extern C(d_tfracbasestep)
-	.extern C(d_lightbasestep)
-	.extern C(d_zibasestep)
-	.extern C(zspantable)
-	.extern C(r_lstepy)
-	.extern C(r_sstepy)
-	.extern C(r_tstepy)
-	.extern C(r_zistepy)
-	.extern C(D_PolysetSetEdgeTable)
-	.extern C(D_RasterizeAliasPolySmooth)
-
-	.extern float_point5
-	.extern Float2ToThe31nd
-	.extern izistep
-	.extern izi
-	.extern FloatMinus2ToThe31nd
-	.extern float_1
-	.extern float_particle_z_clip
-	.extern float_minus_1
-	.extern float_0
-	.extern fp_16
-	.extern fp_64k
-	.extern fp_1m
-	.extern fp_1m_minus_1
-	.extern fp_8 
-	.extern entryvec_table
-	.extern advancetable
-	.extern sstep
-	.extern tstep
-	.extern pspantemp
-	.extern counttemp
-	.extern jumptemp
-	.extern reciprocal_table
-	.extern DP_Count
-	.extern DP_u
-	.extern DP_v
-	.extern DP_32768
-	.extern DP_Color
-	.extern DP_Pix
-	.extern DP_EntryTable
-	.extern	pbase
-	.extern s
-	.extern t
-	.extern sfracf
-	.extern tfracf
-	.extern snext
-	.extern tnext
-	.extern	spancountminus1
-	.extern zi16stepu
-	.extern sdivz16stepu
-	.extern tdivz16stepu
-	.extern	zi8stepu
-	.extern sdivz8stepu
-	.extern tdivz8stepu
-	.extern reciprocal_table_16
-	.extern entryvec_table_16
-	.extern ceil_cw
-	.extern single_cw
-	.extern fp_64kx64k
-	.extern pz
-	.extern spr8entryvec_table
-#endif
-
 	.extern C(snd_scaletable)
 	.extern C(paintbuffer)
 	.extern C(snd_linear_count)
@@ -360,12 +117,6 @@
 // times !!!
 //
 
-// !!! if this is changed, it must be changed in r_local.h too !!!
-#define	NEAR_CLIP	0.01
-
-// !!! if this is changed, it must be changed in r_local.h too !!!
-#define	CYCLE	128
-
 // espan_t structure
 // !!! if this is changed, it must be changed in r_shared.h too !!!
 #define espan_t_u    	0

Modified: trunk/code/unix/snapvectora.s
===================================================================
--- trunk/code/unix/snapvectora.s	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/snapvectora.s	2005-11-04 22:32:00 UTC (rev 269)
@@ -35,7 +35,6 @@
 // 23/09/05 Ported to gas by intel2gas, best supporting actor Tim Angus
 // <tim at ngus.net>
 
-#define GLQUAKE 1 // don't include unneeded defs
 #include "qasm.h"
 
 #ifdef id386

Modified: trunk/code/unix/unix_shared.c
===================================================================
--- trunk/code/unix/unix_shared.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/unix/unix_shared.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -139,7 +139,7 @@
 #endif
 
 //#if 0 // bk001215 - see snapvector.nasm for replacement
-#if !(defined __i386__) // rcg010206 - using this for PPC builds...
+#if !id386 // rcg010206 - using this for PPC builds...
 long fastftol( float f ) { // bk001213 - from win32/win_shared.c
   //static int tmp;
   //	__asm fld f

Modified: trunk/code/win32/win_shared.c
===================================================================
--- trunk/code/win32/win_shared.c	2005-11-04 12:27:12 UTC (rev 268)
+++ trunk/code/win32/win_shared.c	2005-11-04 22:32:00 UTC (rev 269)
@@ -105,7 +105,6 @@
 {
 	unsigned regEAX, regEBX, regECX, regEDX;
 
-#ifndef __VECTORC
 	__asm mov eax, func
 	__asm __emit 00fh
 	__asm __emit 0a2h
@@ -118,12 +117,6 @@
 	regs[1] = regEBX;
 	regs[2] = regECX;
 	regs[3] = regEDX;
-#else
-	regs[0] = 0;
-	regs[1] = 0;
-	regs[2] = 0;
-	regs[3] = 0;
-#endif
 }
 
 static int IsPentium( void )




More information about the quake3-commits mailing list