Question about STRICT

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Dec 7 14:39:37 CST 2002


I was compiling the tests on MSVC (hence my patch), and the gdi32test 
wouldn't compile with the Wine headers (but would with MSVC's). The 
problem can be traced back to the absence of STRICT in windef.h. With 
the closure of bug #90 (compilation with -DSTRICT), I think it would 
make sense to define it in a header (windef.h seems logical), with an 
ifdef NO_STRICT provision (see the attached proposed patch). This would 
allow to remove all -DSTRICT on compilation command lines.

I await your comments on it.

Vincent
-------------- next part --------------
--- wine-20021206-1700/include/windef.h	2002-10-23 20:47:38.000000000 -0400
+++ wine-20021206-1700/include/windef.h	2002-12-07 16:34:02.000000000 -0500
@@ -28,6 +28,12 @@
 #ifndef WINVER
 #define WINVER 0x0500
 #endif
+
+#ifndef NO_STRICT
+#ifndef STRICT
+#define STRICT
+#endif /* STRICT */
+#endif /* NO_STRICT */
 
 #include "winnt.h"
 


More information about the wine-devel mailing list