Fix windows.h inclusion

Francois Gouget fgouget at free.fr
Sun Feb 12 13:15:14 CST 2006


d3dtypes.h said:
/* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */

I guess all that's needed is an #ifndef __WINESRC__

Changelog:

  * include/d3dtypes.h

    Francois Gouget <fgouget at free.fr>
    Fix windows.h inclusion.

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
   Good judgment comes from experience, and experience comes from bad judgment
                                -- Barry LePatner
-------------- next part --------------
Index: include/d3dtypes.h
===================================================================
RCS file: /home/wine/wine/include/d3dtypes.h,v
retrieving revision 1.11
diff -u -p -r1.11 d3dtypes.h
--- include/d3dtypes.h	5 Sep 2003 23:15:44 -0000	1.11
+++ include/d3dtypes.h	12 Feb 2006 19:08:16 -0000
@@ -25,7 +25,9 @@
 #ifndef __WINE_D3DTYPES_H
 #define __WINE_D3DTYPES_H
 
-/* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */
+#ifndef __WINESRC__
+# include <windows.h>
+#endif
 
 #include <float.h>
 #include <ddraw.h>


More information about the wine-patches mailing list