Fix for bug 618459. Mods to allow compilation on VC++ 5.0 (Michael Krause)
authorKarl Schultz <kschultz@freedesktop.org>
Fri, 4 Oct 2002 15:58:33 +0000 (15:58 +0000)
committerKarl Schultz <kschultz@freedesktop.org>
Fri, 4 Oct 2002 15:58:33 +0000 (15:58 +0000)
src/glu/sgi/include/gluos.h
src/mesa/drivers/windows/wmesa.c

index f8c8082..bfa3338 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ** gluos.h - operating system dependencies for GLU
 **
-** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/include/gluos.h,v 1.3 2001/07/16 15:46:42 brianp Exp $
+** $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/include/gluos.h,v 1.4 2002/10/04 15:58:33 kschultz Exp $
 */
 #ifdef __VMS
 #ifdef __cplusplus 
@@ -33,7 +33,9 @@
 #pragma warning(disable : 4244)
 #pragma warning(disable : 4761)
 
+#if defined(_MSC_VER) && _MSC_VER >= 1200
 #pragma comment(linker, "/OPT:NOWIN98")
+#endif
 
 #else
 
index bd8d8c6..05029ad 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: wmesa.c,v 1.36 2002/09/27 02:45:39 brianp Exp $ */
+/* $Id: wmesa.c,v 1.37 2002/10/04 15:58:33 kschultz Exp $ */
 
 /*
  * Windows (Win32) device driver for Mesa 3.4
@@ -101,7 +101,13 @@ WMesaContext WC = NULL;
 
 #ifdef COMPILE_SETPIXEL
 
-__forceinline void wmSetPixel(PWMC pwc, int iScanLine, int iPixel, BYTE r, BYTE g, BYTE b)
+#if defined(_MSC_VER) && _MSC_VER >= 1200
+#define FORCEINLINE __forceinline
+#else
+#define FORCEINLINE __inline
+#endif
+
+FORCEINLINE void wmSetPixel(PWMC pwc, int iScanLine, int iPixel, BYTE r, BYTE g, BYTE b)
 {
        pwc->wmSetPixel(pwc,iScanLine,iPixel,r,g,b);
 }