Winefile compilation fix

Francois Gouget fgouget at free.fr
Wed Aug 13 04:22:54 CDT 2003


gcc 3.3.1 complains that:

winefile.c:579:65: pasting "." and "pOleStr" does not give a valid
preprocessing token

But there is no need to try and make a single token in UNION_MEMBER.
Hence the following fix.

Changelog:

 * programs/winefile/winefile.c
   Fix xcompilation error.

Index: programs/winefile/winefile.c
===================================================================
RCS file: /home/wine/wine/programs/winefile/winefile.c,v
retrieving revision 1.10
diff -u -r1.10 winefile.c
--- programs/winefile/winefile.c	13 Aug 2003 01:18:37 -0000	1.10
+++ programs/winefile/winefile.c	13 Aug 2003 09:16:52 -0000
@@ -50,7 +50,7 @@
 #endif

 #ifdef NONAMELESSUNION
-#define	UNION_MEMBER(x) DUMMYUNIONNAME.##x
+#define	UNION_MEMBER(x) DUMMYUNIONNAME.x
 #else
 #define	UNION_MEMBER(x) x
 #endif


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
  Good judgment comes from experience, and experience comes from bad judgment
                               -- Barry LePatner




More information about the wine-patches mailing list