We must include windef.h before wtypes.h (directly or indirectly).

diff --git a/dlls/commdlg/filedlgbrowser.c b/dlls/commdlg/filedlgbrowser.c
index 11db12c..0ccca3f 100644
--- a/dlls/commdlg/filedlgbrowser.c
+++ b/dlls/commdlg/filedlgbrowser.c
@@ -5,11 +5,12 @@
  */
 
 #include <stdio.h>
-#include "unknwn.h"
+
 #include "filedlgbrowser.h"
 #include "windef.h"
 #include "wingdi.h"
 #include "winuser.h"
+#include "unknwn.h"
 #include "wine/winestring.h"
 #include "heap.h"
 #include "shlguid.h"
diff --git a/dlls/ddraw/ddraw_private.h b/dlls/ddraw/ddraw_private.h
index f200a67..803a4b5 100644
--- a/dlls/ddraw/ddraw_private.h
+++ b/dlls/ddraw/ddraw_private.h
@@ -3,8 +3,8 @@
 
 /* MAY NOT CONTAIN X11 or DGA specific includes/defines/structs! */
 
-#include "wtypes.h"
 #include "winbase.h"
+#include "wtypes.h"
 #include "wingdi.h"
 #include "winuser.h"
 #include "ddraw.h"
diff --git a/dlls/dplayx/dpclassfactory.c b/dlls/dplayx/dpclassfactory.c
index 9a7546a..6101e9b 100644
--- a/dlls/dplayx/dpclassfactory.c
+++ b/dlls/dplayx/dpclassfactory.c
@@ -1,4 +1,5 @@
 
+#include "windef.h"
 #include "wine/obj_base.h"
 #include "winerror.h"
 #include "debugtools.h"
diff --git a/dlls/ole32/moniker.c b/dlls/ole32/moniker.c
index f75373d..e868c28 100644
--- a/dlls/ole32/moniker.c
+++ b/dlls/ole32/moniker.c
@@ -6,9 +6,10 @@
  */
 
 #include <assert.h>
+
 #include "winerror.h"
-#include "wtypes.h"
 #include "winbase.h"
+#include "wtypes.h"
 #include "wine/obj_base.h"
 #include "wine/obj_storage.h"
 #include "wine/obj_misc.h"
diff --git a/dlls/shell32/folders.c b/dlls/shell32/folders.c
index 5bf89eb..c0ea2bd 100644
--- a/dlls/shell32/folders.c
+++ b/dlls/shell32/folders.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <string.h>
 
+#include "windef.h"
 #include "wine/obj_base.h"
 #include "wine/obj_extracticon.h"
 #include "wine/undocshell.h"
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index d885f1b..d4bcbf4 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "windef.h"
 #include "servprov.h"
 #include "shlguid.h"
 #include "shlobj.h"