Fix dsurface/main.c for those that done have GL

Guy L. Albertelli galberte at neo.lrun.com
Sat Sep 28 21:31:46 CDT 2002


Some of us don't have GL/gl.h installed. Configure checks for it. We should use it.

The check may be wrong. Feel free to adjust.

License: X11

Changelog:
Guy Albertelli  <<galberte at neo.lrun.com>>

  dlls/ddraw/dsurface/main.c
   - Eliminate inclusion of mesa_private.h if no OPENGL
-------------- next part --------------
Index: dlls/ddraw/dsurface/main.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/dsurface/main.c,v
retrieving revision 1.28
diff -u -r1.28 main.c
--- dlls/ddraw/dsurface/main.c	26 Sep 2002 03:20:07 -0000	1.28
+++ dlls/ddraw/dsurface/main.c	29 Sep 2002 01:45:04 -0000
@@ -24,7 +24,9 @@
 #include <assert.h>
 #include <string.h>
 
+#ifdef HAVE_OPENGL
 #include "mesa_private.h"
+#endif
 #include "wine/debug.h"
 #include "ddraw_private.h"
 #include "dsurface/main.h"


More information about the wine-patches mailing list