Web lists-archives.org

Re: [Mingw-users] windows.h dependency




On 2/2/08, Danny Smith <dannysmith@xxxxxxxxxxxx> wrote:
> >
> >
> > On 2/2/08, Keith Marshall <keithmarshall@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > > On Saturday 02 February 2008 19:57, NightStrike wrote:
> > > > If I put "#include <windows.h> at the top of all of these files,
> > > > should it go before or after the extern C stuff?  ie, this:
> > > >
> > > > #ifdef __cplusplus
> > > > extern "C" {
> > > > #endif
> > >
> > > It should go before that; it should do its own determination of what
> > > should be `extern "C"', and you don't want to accidentally include
> > > anything in that category, which doesn't belong there.
> >
> > Ok.  I will have a patch when I get back from church.
> >
>
> In some files, the inclusion of windows.h needs to be guarded, eg in
> COM headers like oaidl.h
>
> #ifndef COM_NO_WINDOWS_H
> #include <windows.h>
> #include <ole2.h>
> #endif
>
> Also look at objbase.h and rpc.h for another example of problem that can
> arise with unconditional inclusion of windows.h.
>
> Some files (eg winerror.h, sql.h), don't need windows.h pollution at
> all.
>
> But all these cases wll fall out with testing.

What I did was compile each file without it:

#include <file>
int main() {return 0;}

Then I compiled each file with it:

#include <windows.h>
#include <file>
int main() {return 0;}

If it compiled with zero warnings or errors (in reality, if gcc exited
with a 0 status), I did not output the filename.  If gcc had a nonzero
exit status, I did.  I then compared the two lists, and found 106
files that went from X number of warnings/errors to zero
warnings/errors with the inclusion of windows.h.  Only those files
were changed.

oaidl.h is an interesting one.  I had pulled windows.h out of that
ifndef clause.  I suppose I should put it back.. but what is going on
there?  It compiles cleanly in the above example with it's outside of
the ifndef.

I also made an additional change to winldap.h.  It was checking
against the definition of two headers before including them.  However,
that safeguard checking is in the header itself, and thus redundant.

Anyway, the patch is attached.  If you guys want it, you can have it
and do whatever you want with it.  If you don't, well, then just
ignore it, I guess.
? a.c
? a.sh
? badlist
? badlistwin
? fixlist
? windows.h.dependencies.patch.diff
Index: accctrl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/accctrl.h,v
retrieving revision 1.6
diff -u -r1.6 accctrl.h
--- accctrl.h	26 Sep 2003 08:07:39 -0000	1.6
+++ accctrl.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: aviriff.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/aviriff.h,v
retrieving revision 1.1
diff -u -r1.1 aviriff.h
--- aviriff.h	10 May 2006 08:57:44 -0000	1.1
+++ aviriff.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef _MMSYSTEM_H
 #include <mmsystem.h>
 #endif
Index: cguid.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/cguid.h,v
retrieving revision 1.3
diff -u -r1.3 cguid.h
--- cguid.h	3 Jan 2004 22:12:35 -0000	1.3
+++ cguid.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: commctrl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/commctrl.h,v
retrieving revision 1.64
diff -u -r1.64 commctrl.h
--- commctrl.h	18 Apr 2006 09:35:29 -0000	1.64
+++ commctrl.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #include <prsht.h>
 #ifdef __cplusplus
 extern "C" {
Index: commdlg.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/commdlg.h,v
retrieving revision 1.19
diff -u -r1.19 commdlg.h
--- commdlg.h	25 Jul 2006 00:22:19 -0000	1.19
+++ commdlg.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: control.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/control.h,v
retrieving revision 1.1
diff -u -r1.1 control.h
--- control.h	10 May 2006 08:57:44 -0000	1.1
+++ control.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: cpl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/cpl.h,v
retrieving revision 1.3
diff -u -r1.3 cpl.h
--- cpl.h	4 Jan 2004 21:35:31 -0000	1.3
+++ cpl.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: custcntl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/custcntl.h,v
retrieving revision 1.2
diff -u -r1.2 custcntl.h
--- custcntl.h	9 Mar 2002 09:04:08 -0000	1.2
+++ custcntl.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: dbt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/dbt.h,v
retrieving revision 1.5
diff -u -r1.5 dbt.h
--- dbt.h	28 Mar 2004 11:22:10 -0000	1.5
+++ dbt.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: dde.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/dde.h,v
retrieving revision 1.3
diff -u -r1.3 dde.h
--- dde.h	26 Dec 2002 05:08:32 -0000	1.3
+++ dde.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddeml.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddeml.h,v
retrieving revision 1.6
diff -u -r1.6 ddeml.h
--- ddeml.h	6 Mar 2007 01:53:36 -0000	1.6
+++ ddeml.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: devguid.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/devguid.h,v
retrieving revision 1.1
diff -u -r1.1 devguid.h
--- devguid.h	22 Jul 2006 12:06:11 -0000	1.1
+++ devguid.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif 
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" { 
 #endif 
Index: dlgs.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/dlgs.h,v
retrieving revision 1.2
diff -u -r1.2 dlgs.h
--- dlgs.h	9 Mar 2002 09:04:08 -0000	1.2
+++ dlgs.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: docobj.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/docobj.h,v
retrieving revision 1.5
diff -u -r1.5 docobj.h
--- docobj.h	25 Jul 2006 00:22:19 -0000	1.5
+++ docobj.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: errors.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/errors.h,v
retrieving revision 1.3
diff -u -r1.3 errors.h
--- errors.h	10 May 2006 09:20:14 -0000	1.3
+++ errors.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: evcode.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/evcode.h,v
retrieving revision 1.2
diff -u -r1.2 evcode.h
--- evcode.h	10 May 2006 08:57:45 -0000	1.2
+++ evcode.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: exdisp.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/exdisp.h,v
retrieving revision 1.4
diff -u -r1.4 exdisp.h
--- exdisp.h	12 Jul 2007 05:49:18 -0000	1.4
+++ exdisp.h	2 Feb 2008 23:10:22 -0000
@@ -3,6 +3,9 @@
 #if __GNUC__ >=3
 #pragma GCC system_header
 #endif
+
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: imagehlp.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/imagehlp.h,v
retrieving revision 1.3
diff -u -r1.3 imagehlp.h
--- imagehlp.h	12 Jun 2006 00:55:06 -0000	1.3
+++ imagehlp.h	2 Feb 2008 23:10:22 -0000
@@ -21,6 +21,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: imm.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/imm.h,v
retrieving revision 1.6
diff -u -r1.6 imm.h
--- imm.h	6 Apr 2006 11:53:54 -0000	1.6
+++ imm.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: intshcut.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/intshcut.h,v
retrieving revision 1.3
diff -u -r1.3 intshcut.h
--- intshcut.h	11 Apr 2006 22:56:08 -0000	1.3
+++ intshcut.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <isguids.h>
 #ifdef __cplusplus
 extern "C" { 
Index: ipexport.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ipexport.h,v
retrieving revision 1.7
diff -u -r1.7 ipexport.h
--- ipexport.h	9 Mar 2002 09:04:08 -0000	1.7
+++ ipexport.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: iphlpapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/iphlpapi.h,v
retrieving revision 1.8
diff -u -r1.8 iphlpapi.h
--- iphlpapi.h	8 Apr 2006 03:49:28 -0000	1.8
+++ iphlpapi.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <iprtrmib.h>
 #include <ipexport.h>
 #include <iptypes.h>
Index: iprtrmib.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/iprtrmib.h,v
retrieving revision 1.7
diff -u -r1.7 iprtrmib.h
--- iprtrmib.h	9 Mar 2002 09:04:08 -0000	1.7
+++ iprtrmib.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <ipifcons.h>
 #ifdef __cplusplus
 extern "C" {
Index: iptypes.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/iptypes.h,v
retrieving revision 1.10
diff -u -r1.10 iptypes.h
--- iptypes.h	19 Jul 2006 21:24:42 -0000	1.10
+++ iptypes.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <sys/types.h>
 #ifdef __cplusplus
 extern "C" {
Index: isguids.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/isguids.h,v
retrieving revision 1.2
diff -u -r1.2 isguids.h
--- isguids.h	9 Mar 2002 09:04:09 -0000	1.2
+++ isguids.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ks.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ks.h,v
retrieving revision 1.1
diff -u -r1.1 ks.h
--- ks.h	10 May 2006 08:57:45 -0000	1.1
+++ ks.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: lm.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lm.h,v
retrieving revision 1.3
diff -u -r1.3 lm.h
--- lm.h	9 Mar 2002 09:04:09 -0000	1.3
+++ lm.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <lmcons.h>
 #include <lmaccess.h>
 #include <lmalert.h>
Index: lmaccess.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lmaccess.h,v
retrieving revision 1.5
diff -u -r1.5 lmaccess.h
--- lmaccess.h	5 Jun 2003 00:49:27 -0000	1.5
+++ lmaccess.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: lmserver.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lmserver.h,v
retrieving revision 1.3
diff -u -r1.3 lmserver.h
--- lmserver.h	9 Mar 2002 09:04:09 -0000	1.3
+++ lmserver.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: lmshare.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lmshare.h,v
retrieving revision 1.3
diff -u -r1.3 lmshare.h
--- lmshare.h	9 Mar 2002 09:04:09 -0000	1.3
+++ lmshare.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: lzexpand.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/lzexpand.h,v
retrieving revision 1.2
diff -u -r1.2 lzexpand.h
--- lzexpand.h	9 Mar 2002 09:04:09 -0000	1.2
+++ lzexpand.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mapi.h,v
retrieving revision 1.3
diff -u -r1.3 mapi.h
--- mapi.h	7 Jun 2002 00:30:17 -0000	1.3
+++ mapi.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mcx.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mcx.h,v
retrieving revision 1.2
diff -u -r1.2 mcx.h
--- mcx.h	9 Mar 2002 09:04:09 -0000	1.2
+++ mcx.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mmreg.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mmreg.h,v
retrieving revision 1.1
diff -u -r1.1 mmreg.h
--- mmreg.h	10 May 2006 08:57:45 -0000	1.1
+++ mmreg.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef _MMSYSTEM_H
 #include <mmsystem.h>
 #endif
Index: mmsystem.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mmsystem.h,v
retrieving revision 1.9
diff -u -r1.9 mmsystem.h
--- mmsystem.h	10 Jul 2007 08:06:00 -0000	1.9
+++ mmsystem.h	2 Feb 2008 23:10:22 -0000
@@ -5,6 +5,9 @@
 #pragma GCC system_header
 #endif
 #pragma pack(push,1)
+
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mprapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mprapi.h,v
retrieving revision 1.10
diff -u -r1.10 mprapi.h
--- mprapi.h	12 May 2006 17:12:31 -0000	1.10
+++ mprapi.h	2 Feb 2008 23:10:22 -0000
@@ -18,6 +18,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <ras.h>
 #include <lmcons.h>
 
Index: msacm.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/msacm.h,v
retrieving revision 1.2
diff -u -r1.2 msacm.h
--- msacm.h	30 Apr 2004 17:05:28 -0000	1.2
+++ msacm.h	2 Feb 2008 23:10:22 -0000
@@ -7,6 +7,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mshtml.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mshtml.h,v
retrieving revision 1.7
diff -u -r1.7 mshtml.h
--- mshtml.h	12 Jul 2007 05:49:18 -0000	1.7
+++ mshtml.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: mswsock.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/mswsock.h,v
retrieving revision 1.5
diff -u -r1.5 mswsock.h
--- mswsock.h	12 Mar 2003 23:36:54 -0000	1.5
+++ mswsock.h	2 Feb 2008 23:10:22 -0000
@@ -14,6 +14,9 @@
 #if __GNUC__ >=3
 #pragma GCC system_header
 #endif
+
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: nb30.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/nb30.h,v
retrieving revision 1.2
diff -u -r1.2 nb30.h
--- nb30.h	9 Mar 2002 09:04:09 -0000	1.2
+++ nb30.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: nddeapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/nddeapi.h,v
retrieving revision 1.3
diff -u -r1.3 nddeapi.h
--- nddeapi.h	9 Mar 2002 09:04:09 -0000	1.3
+++ nddeapi.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: nspapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/nspapi.h,v
retrieving revision 1.4
diff -u -r1.4 nspapi.h
--- nspapi.h	15 Jan 2004 07:19:20 -0000	1.4
+++ nspapi.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ntdef.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ntdef.h,v
retrieving revision 1.8
diff -u -r1.8 ntdef.h
--- ntdef.h	14 Mar 2003 03:06:52 -0000	1.8
+++ ntdef.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #define NTAPI __stdcall
 #define OBJ_INHERIT 2L
 #define OBJ_PERMANENT 16L
Index: ntdll.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ntdll.h,v
retrieving revision 1.1
diff -u -r1.1 ntdll.h
--- ntdll.h	16 Jun 2002 13:21:41 -0000	1.1
+++ ntdll.h	2 Feb 2008 23:10:22 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 typedef enum _SHUTDOWN_ACTION {
      ShutdownNoReboot,
      ShutdownReboot,
Index: ntsecapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ntsecapi.h,v
retrieving revision 1.11
diff -u -r1.11 ntsecapi.h
--- ntsecapi.h	28 Apr 2006 17:16:55 -0000	1.11
+++ ntsecapi.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: oaidl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/oaidl.h,v
retrieving revision 1.13
diff -u -r1.13 oaidl.h
--- oaidl.h	2 Jul 2007 02:52:56 -0000	1.13
+++ oaidl.h	2 Feb 2008 23:10:23 -0000
@@ -4,8 +4,9 @@
 #pragma GCC system_header
 #endif
 
-#ifndef COM_NO_WINDOWS_H
 #include <windows.h>
+
+#ifndef COM_NO_WINDOWS_H
 #include <ole2.h>
 #endif
 
Index: objidl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/objidl.h,v
retrieving revision 1.21
diff -u -r1.21 objidl.h
--- objidl.h	25 Jul 2006 00:22:19 -0000	1.21
+++ objidl.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <objfwd.h>
 
 #define PIDSI_TITLE		0x00000002
Index: objsafe.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/objsafe.h,v
retrieving revision 1.2
diff -u -r1.2 objsafe.h
--- objsafe.h	11 Apr 2006 22:56:08 -0000	1.2
+++ objsafe.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: odbcinst.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/odbcinst.h,v
retrieving revision 1.3
diff -u -r1.3 odbcinst.h
--- odbcinst.h	9 Mar 2002 09:04:09 -0000	1.3
+++ odbcinst.h	2 Feb 2008 23:10:23 -0000
@@ -3,6 +3,8 @@
 #if __GNUC__ >=3
 #pragma GCC system_header
 #endif
+
+#include <windows.h>
 #include <sql.h>
 #ifdef __cplusplus
 extern "C" {
Index: oleacc.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/oleacc.h,v
retrieving revision 1.5
diff -u -r1.5 oleacc.h
--- oleacc.h	11 Apr 2006 22:56:08 -0000	1.5
+++ oleacc.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: olectlid.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/olectlid.h,v
retrieving revision 1.3
diff -u -r1.3 olectlid.h
--- olectlid.h	26 Jul 2002 04:26:25 -0000	1.3
+++ olectlid.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: oleidl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/oleidl.h,v
retrieving revision 1.14
diff -u -r1.14 oleidl.h
--- oleidl.h	25 Jul 2006 00:22:19 -0000	1.14
+++ oleidl.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: powrprof.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/powrprof.h,v
retrieving revision 1.1
diff -u -r1.1 powrprof.h
--- powrprof.h	6 Jun 2003 00:24:34 -0000	1.1
+++ powrprof.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: prsht.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/prsht.h,v
retrieving revision 1.7
diff -u -r1.7 prsht.h
--- prsht.h	4 Jan 2004 21:35:31 -0000	1.7
+++ prsht.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: psapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/psapi.h,v
retrieving revision 1.5
diff -u -r1.5 psapi.h
--- psapi.h	29 Jan 2008 20:34:43 -0000	1.5
+++ psapi.h	2 Feb 2008 23:10:23 -0000
@@ -20,6 +20,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rapi.h,v
retrieving revision 1.4
diff -u -r1.4 rapi.h
--- rapi.h	9 Mar 2002 09:04:09 -0000	1.4
+++ rapi.h	2 Feb 2008 23:10:23 -0000
@@ -11,6 +11,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 typedef struct IRAPIStream
 {
   struct IRAPIStreamVtbl * lpVtbl;
Index: ras.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ras.h,v
retrieving revision 1.10
diff -u -r1.10 ras.h
--- ras.h	30 Jan 2008 00:47:35 -0000	1.10
+++ ras.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C"
 {
Index: rasdlg.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rasdlg.h,v
retrieving revision 1.2
diff -u -r1.2 rasdlg.h
--- rasdlg.h	14 Apr 2006 15:54:54 -0000	1.2
+++ rasdlg.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rassapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rassapi.h,v
retrieving revision 1.2
diff -u -r1.2 rassapi.h
--- rassapi.h	9 Mar 2002 09:04:09 -0000	1.2
+++ rassapi.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: regstr.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/regstr.h,v
retrieving revision 1.5
diff -u -r1.5 regstr.h
--- regstr.h	9 Mar 2002 09:04:09 -0000	1.5
+++ regstr.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: richedit.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/richedit.h,v
retrieving revision 1.15
diff -u -r1.15 richedit.h
--- richedit.h	20 Jul 2005 11:21:49 -0000	1.15
+++ richedit.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rpcdce.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcdce.h,v
retrieving revision 1.9
diff -u -r1.9 rpcdce.h
--- rpcdce.h	12 Jun 2006 00:55:06 -0000	1.9
+++ rpcdce.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rpcdce2.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcdce2.h,v
retrieving revision 1.2
diff -u -r1.2 rpcdce2.h
--- rpcdce2.h	9 Mar 2002 09:04:09 -0000	1.2
+++ rpcdce2.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rpcdcep.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcdcep.h,v
retrieving revision 1.6
diff -u -r1.6 rpcdcep.h
--- rpcdcep.h	18 Apr 2004 07:07:56 -0000	1.6
+++ rpcdcep.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rpcndr.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcndr.h,v
retrieving revision 1.8
diff -u -r1.8 rpcndr.h
--- rpcndr.h	3 Oct 2007 23:49:35 -0000	1.8
+++ rpcndr.h	2 Feb 2008 23:10:23 -0000
@@ -5,6 +5,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef __RPCNDR_H_VERSION__
 #define __RPCNDR_H_VERSION__        ( 450 )
 #endif /* __RPCNDR_H_VERSION__ */
Index: rpcnsi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcnsi.h,v
retrieving revision 1.3
diff -u -r1.3 rpcnsi.h
--- rpcnsi.h	12 Jun 2006 00:55:06 -0000	1.3
+++ rpcnsi.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: rpcnsip.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/rpcnsip.h,v
retrieving revision 1.4
diff -u -r1.4 rpcnsip.h
--- rpcnsip.h	12 Jun 2006 00:55:06 -0000	1.4
+++ rpcnsip.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: schannel.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/schannel.h,v
retrieving revision 1.2
diff -u -r1.2 schannel.h
--- schannel.h	9 Mar 2002 09:04:09 -0000	1.2
+++ schannel.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <wincrypt.h>
 
 #ifdef __cplusplus
Index: schnlsp.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/schnlsp.h,v
retrieving revision 1.2
diff -u -r1.2 schnlsp.h
--- schnlsp.h	9 Mar 2002 09:04:09 -0000	1.2
+++ schnlsp.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 
 #define SECPKG_ATTR_SUPPORTED_ALGS 86
 #define SECPKG_ATTR_CIPHER_STRENGTHS 87
Index: scrnsave.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/scrnsave.h,v
retrieving revision 1.2
diff -u -r1.2 scrnsave.h
--- scrnsave.h	9 Mar 2002 09:04:09 -0000	1.2
+++ scrnsave.h	2 Feb 2008 23:10:23 -0000
@@ -13,6 +13,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: security.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/security.h,v
retrieving revision 1.3
diff -u -r1.3 security.h
--- security.h	9 Feb 2003 14:02:30 -0000	1.3
+++ security.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 
 #define SEC_E_OK 0
 #define SEC_E_CERT_EXPIRED (-2146893016)
Index: servprov.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/servprov.h,v
retrieving revision 1.3
diff -u -r1.3 servprov.h
--- servprov.h	18 Apr 2006 02:57:59 -0000	1.3
+++ servprov.h	2 Feb 2008 23:10:23 -0000
@@ -5,6 +5,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: setupapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/setupapi.h,v
retrieving revision 1.8
diff -u -r1.8 setupapi.h
--- setupapi.h	7 Mar 2007 23:18:35 -0000	1.8
+++ setupapi.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <commctrl.h>
 #include <pshpack1.h>
 
Index: shellapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/shellapi.h,v
retrieving revision 1.18
diff -u -r1.18 shellapi.h
--- shellapi.h	19 May 2007 23:52:44 -0000	1.18
+++ shellapi.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: shldisp.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/shldisp.h,v
retrieving revision 1.3
diff -u -r1.3 shldisp.h
--- shldisp.h	11 Apr 2006 22:56:08 -0000	1.3
+++ shldisp.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: shlguid.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/shlguid.h,v
retrieving revision 1.8
diff -u -r1.8 shlguid.h
--- shlguid.h	17 Aug 2005 08:29:08 -0000	1.8
+++ shlguid.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: sql.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/sql.h,v
retrieving revision 1.3
diff -u -r1.3 sql.h
--- sql.h	9 Mar 2002 09:04:09 -0000	1.3
+++ sql.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: sqlext.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/sqlext.h,v
retrieving revision 1.4
diff -u -r1.4 sqlext.h
--- sqlext.h	9 Dec 2004 02:33:20 -0000	1.4
+++ sqlext.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <sql.h>
 #ifdef __cplusplus
 extern "C" {
Index: sqltypes.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/sqltypes.h,v
retrieving revision 1.4
diff -u -r1.4 sqltypes.h
--- sqltypes.h	5 Feb 2003 15:51:27 -0000	1.4
+++ sqltypes.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: sqlucode.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/sqlucode.h,v
retrieving revision 1.3
diff -u -r1.3 sqlucode.h
--- sqlucode.h	11 Feb 2004 19:48:22 -0000	1.3
+++ sqlucode.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <sqlext.h>
 #ifdef __cplusplus
 extern "C" {
Index: subauth.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/subauth.h,v
retrieving revision 1.3
diff -u -r1.3 subauth.h
--- subauth.h	9 Mar 2002 09:04:10 -0000	1.3
+++ subauth.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: tlhelp32.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/tlhelp32.h,v
retrieving revision 1.2
diff -u -r1.2 tlhelp32.h
--- tlhelp32.h	9 Mar 2002 09:04:10 -0000	1.2
+++ tlhelp32.h	2 Feb 2008 23:10:23 -0000
@@ -16,6 +16,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: userenv.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/userenv.h,v
retrieving revision 1.2
diff -u -r1.2 userenv.h
--- userenv.h	9 Mar 2002 09:04:10 -0000	1.2
+++ userenv.h	2 Feb 2008 23:10:23 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: uxtheme.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/uxtheme.h,v
retrieving revision 1.6
diff -u -r1.6 uxtheme.h
--- uxtheme.h	8 Sep 2006 01:16:46 -0000	1.6
+++ uxtheme.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,7 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
 #include <commctrl.h>
 
 #ifdef __cplusplus
Index: vidcap.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/vidcap.h,v
retrieving revision 1.1
diff -u -r1.1 vidcap.h
--- vidcap.h	10 May 2006 08:57:45 -0000	1.1
+++ vidcap.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: vptype.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/vptype.h,v
retrieving revision 1.1
diff -u -r1.1 vptype.h
--- vptype.h	10 May 2006 08:57:45 -0000	1.1
+++ vptype.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winable.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winable.h,v
retrieving revision 1.9
diff -u -r1.9 winable.h
--- winable.h	26 Sep 2003 14:46:33 -0000	1.9
+++ winable.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winbase.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winbase.h,v
retrieving revision 1.91
diff -u -r1.91 winbase.h
--- winbase.h	22 Nov 2007 02:38:17 -0000	1.91
+++ winbase.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef WINBASEAPI
 #ifdef __W32API_USE_DLLIMPORT__
 #define WINBASEAPI DECLSPEC_IMPORT
Index: winber.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winber.h,v
retrieving revision 1.1
diff -u -r1.1 winber.h
--- winber.h	1 Aug 2003 09:11:38 -0000	1.1
+++ winber.h	2 Feb 2008 23:10:24 -0000
@@ -21,6 +21,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: wincon.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wincon.h,v
retrieving revision 1.13
diff -u -r1.13 wincon.h
--- wincon.h	27 Mar 2006 05:34:23 -0000	1.13
+++ wincon.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: wincrypt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wincrypt.h,v
retrieving revision 1.23
diff -u -r1.23 wincrypt.h
--- wincrypt.h	11 Dec 2007 18:38:25 -0000	1.23
+++ wincrypt.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef WINADVAPI
 #define WINADVAPI
 #endif
Index: windns.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/windns.h,v
retrieving revision 1.3
diff -u -r1.3 windns.h
--- windns.h	8 Jan 2007 08:09:15 -0000	1.3
+++ windns.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: wingdi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wingdi.h,v
retrieving revision 1.60
diff -u -r1.60 wingdi.h
--- wingdi.h	4 Dec 2007 00:35:55 -0000	1.60
+++ wingdi.h	2 Feb 2008 23:10:24 -0000
@@ -5,6 +5,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winioctl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winioctl.h,v
retrieving revision 1.15
diff -u -r1.15 winioctl.h
--- winioctl.h	7 Feb 2005 20:40:32 -0000	1.15
+++ winioctl.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winldap.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winldap.h,v
retrieving revision 1.3
diff -u -r1.3 winldap.h
--- winldap.h	19 Jun 2005 07:25:11 -0000	1.3
+++ winldap.h	2 Feb 2008 23:10:24 -0000
@@ -21,13 +21,9 @@
 #pragma GCC system_header
 #endif
 
-#ifndef _SCHANNEL_H
+#include <windows.h>
 #include <schannel.h>
-#endif
-
-#ifndef _WINBER_H
 #include <winber.h>
-#endif
 
 #ifndef WINLDAPAPI
 #define WINLDAPAPI DECLSPEC_IMPORT
Index: winnetwk.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnetwk.h,v
retrieving revision 1.7
diff -u -r1.7 winnetwk.h
--- winnetwk.h	31 Mar 2006 09:08:47 -0000	1.7
+++ winnetwk.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winnls.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnls.h,v
retrieving revision 1.9
diff -u -r1.9 winnls.h
--- winnls.h	10 May 2006 08:36:05 -0000	1.9
+++ winnls.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef WINBASEAPI
 #ifdef __W32API_USE_DLLIMPORT__
 #define WINBASEAPI DECLSPEC_IMPORT
Index: winnt.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winnt.h,v
retrieving revision 1.119
diff -u -r1.119 winnt.h
--- winnt.h	29 Jan 2008 21:18:49 -0000	1.119
+++ winnt.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 /* translate GCC target defines to MS equivalents. Keep this synchronized
    with windows.h. */
 #if defined(__i686__) && !defined(_M_IX86)
Index: winperf.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winperf.h,v
retrieving revision 1.2
diff -u -r1.2 winperf.h
--- winperf.h	9 Mar 2002 09:04:10 -0000	1.2
+++ winperf.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winreg.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winreg.h,v
retrieving revision 1.6
diff -u -r1.6 winreg.h
--- winreg.h	5 Oct 2006 07:36:06 -0000	1.6
+++ winreg.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef WINADVAPI
 #define WINADVAPI
 #endif
Index: winresrc.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winresrc.h,v
retrieving revision 1.2
diff -u -r1.2 winresrc.h
--- winresrc.h	9 Mar 2002 09:04:10 -0000	1.2
+++ winresrc.h	2 Feb 2008 23:10:24 -0000
@@ -5,6 +5,7 @@
 #endif
 
 #define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 #include <winuser.h>
 #include <winnt.h>
 #include <winver.h>
Index: winspool.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winspool.h,v
retrieving revision 1.13
diff -u -r1.13 winspool.h
--- winspool.h	30 Mar 2006 04:01:43 -0000	1.13
+++ winspool.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winsvc.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winsvc.h,v
retrieving revision 1.7
diff -u -r1.7 winsvc.h
--- winsvc.h	11 Jan 2006 22:49:06 -0000	1.7
+++ winsvc.h	2 Feb 2008 23:10:24 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifndef WINADVAPI
 #define WINADVAPI
 #endif
Index: winuser.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winuser.h,v
retrieving revision 1.126
diff -u -r1.126 winuser.h
--- winuser.h	29 Jan 2008 21:18:49 -0000	1.126
+++ winuser.h	2 Feb 2008 23:10:25 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: winver.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/winver.h,v
retrieving revision 1.4
diff -u -r1.4 winver.h
--- winver.h	25 Mar 2006 21:43:55 -0000	1.4
+++ winver.h	2 Feb 2008 23:10:25 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: wsnetbs.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/wsnetbs.h,v
retrieving revision 1.2
diff -u -r1.2 wsnetbs.h
--- wsnetbs.h	9 Mar 2002 09:04:10 -0000	1.2
+++ wsnetbs.h	2 Feb 2008 23:10:25 -0000
@@ -4,6 +4,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #define NETBIOS_NAME_LENGTH	16
 #define NETBIOS_UNIQUE_NAME	0
 #define NETBIOS_GROUP_NAME	1
Index: ddk/atm.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/atm.h,v
retrieving revision 1.6
diff -u -r1.6 atm.h
--- ddk/atm.h	28 Sep 2004 08:46:50 -0000	1.6
+++ ddk/atm.h	2 Feb 2008 23:10:25 -0000
@@ -27,6 +27,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/hidsdi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/hidsdi.h,v
retrieving revision 1.1
diff -u -r1.1 hidsdi.h
--- ddk/hidsdi.h	12 Aug 2005 09:16:16 -0000	1.1
+++ ddk/hidsdi.h	2 Feb 2008 23:10:25 -0000
@@ -21,6 +21,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/hidusage.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/hidusage.h,v
retrieving revision 1.4
diff -u -r1.4 hidusage.h
--- ddk/hidusage.h	19 Dec 2002 01:34:25 -0000	1.4
+++ ddk/hidusage.h	2 Feb 2008 23:10:25 -0000
@@ -27,6 +27,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/ndisguid.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/ndisguid.h,v
retrieving revision 1.4
diff -u -r1.4 ndisguid.h
--- ddk/ndisguid.h	19 Dec 2002 01:34:25 -0000	1.4
+++ ddk/ndisguid.h	2 Feb 2008 23:10:25 -0000
@@ -27,6 +27,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/netpnp.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/netpnp.h,v
retrieving revision 1.4
diff -u -r1.4 netpnp.h
--- ddk/netpnp.h	28 Sep 2004 08:46:51 -0000	1.4
+++ ddk/netpnp.h	2 Feb 2008 23:10:25 -0000
@@ -27,6 +27,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/newdev.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/newdev.h,v
retrieving revision 1.5
diff -u -r1.5 newdev.h
--- ddk/newdev.h	12 Jun 2006 00:55:06 -0000	1.5
+++ ddk/newdev.h	2 Feb 2008 23:10:25 -0000
@@ -27,6 +27,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
Index: ddk/ntapi.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/ddk/ntapi.h,v
retrieving revision 1.11
diff -u -r1.11 ntapi.h
--- ddk/ntapi.h	12 Jun 2006 00:55:06 -0000	1.11
+++ ddk/ntapi.h	2 Feb 2008 23:10:25 -0000
@@ -30,6 +30,8 @@
 #pragma GCC system_header
 #endif
 
+#include <windows.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users