oleview: U(x) must be defined after winnt.h has had a chance to define NONAMELESSUNION. Fixes the compilation with gcc 2.95.

Francois Gouget fgouget at free.fr
Sun Oct 15 10:07:00 CDT 2006


---
 programs/oleview/main.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/programs/oleview/main.h b/programs/oleview/main.h
index 3bac011..90f184d 100644
--- a/programs/oleview/main.h
+++ b/programs/oleview/main.h
@@ -20,17 +20,17 @@
 
 #define COBJMACROS
 
+#include <windows.h>
+#include <winreg.h>
+#include <commctrl.h>
+#include <unknwn.h>
+
 #ifdef NONAMELESSUNION
 # define U(x)  (x).u
 #else
 # define U(x)  (x)
 #endif
 
-#include <windows.h>
-#include <winreg.h>
-#include <commctrl.h>
-#include <unknwn.h>
-
 #include "resource.h"
 
 #define MAX_LOAD_STRING 256
-- 
1.4.1.1




More information about the wine-patches mailing list