diff options
author | Karl Schultz <kschultz@freedesktop.org> | 2002-10-04 15:44:28 +0000 |
---|---|---|
committer | Karl Schultz <kschultz@freedesktop.org> | 2002-10-04 15:44:28 +0000 |
commit | ed7f9fb515d7ec8a4a1483b5b28c443e5006e14c (patch) | |
tree | e37e5f280bb84faa23430c054e5dd98ebe33494b | |
parent | 61b226a4f4d29a6f7654cac22ae96b76b139bd8f (diff) |
Fix for bug 618459. Mods to allow compilation on VC++ 5.0 (Michael Krause)
-rw-r--r-- | src/glu/sgi/include/gluos.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/windows/wmesa.c | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/glu/sgi/include/gluos.h b/src/glu/sgi/include/gluos.h index f8c80826c7..39bcee06e3 100644 --- a/src/glu/sgi/include/gluos.h +++ b/src/glu/sgi/include/gluos.h @@ -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.3.2.1 2002/10/04 15:44:28 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 diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c index 0df3d6c116..367e401b47 100644 --- a/src/mesa/drivers/windows/wmesa.c +++ b/src/mesa/drivers/windows/wmesa.c @@ -1,4 +1,4 @@ -/* $Id: wmesa.c,v 1.22.2.10 2002/09/12 17:02:52 kschultz Exp $ */ +/* $Id: wmesa.c,v 1.22.2.11 2002/10/04 15:44:32 kschultz Exp $ */ /* * Windows (Win32) device driver for Mesa 3.4 @@ -100,7 +100,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); } |