summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-03-17 15:19:10 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-04-09 15:05:16 +0100
commit1ae525b3d236b59e6437b2b5433d460e18370973 (patch)
treebf8b10fb0bb22de0dc81da0d55c9bdfd2d8bf7f2
parentfc3e6ddb2c8e922ea80f2dc5cbc1df2102e30d99 (diff)
Define WIN32_LEAN_AND_MEAN when building on Win32
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@dronecode.org.uk> Reviewed-by: David Macek <david.macek.0@gmail.com>
-rw-r--r--listing.c1
1 files changed, 1 insertions, 0 deletions
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