[PATCH app/xkbcomp] Define WIN32_LEAN_AND_MEAN when building on Win32

Jon TURNEY jon.turney at dronecode.org.uk
Thu Mar 19 07:18:24 PDT 2015


w32api/rpcnndr.h (included by windows.h) uses TypeString as the name of a structure member.

xkbcomp.h defines it as a macro for a constant.

Define WIN32_LEAN_AND_MEAN to avoid this clash.

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 listing.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/listing.c b/listing.c
index 945f7f6..322cbf2 100644
--- a/listing.c
+++ b/listing.c
@@ -108,6 +108,7 @@ SOFTWARE.
 #endif
 
 #ifdef WIN32
+# define WIN32_LEAN_AND_MEAN
 # include <X11/Xwindows.h>
 # define FileName(file) file.cFileName
 # undef TEXT
-- 
2.3.2



More information about the xorg-devel mailing list