Paste number 91167: For Xof: The win32 build fix I'm trying

Paste number 91167: For Xof: The win32 build fix I'm trying
Pasted by: nyef
When:9 months, 1 week ago
Share:Tweet this! | http://paste.lisp.org/+1YCF
Channel:#lisp
Paste contents:
Raw Source | XML | Display As
diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c
index b8c34b6..6c42bd1 100644
--- a/tools-for-build/grovel-headers.c
+++ b/tools-for-build/grovel-headers.c
@@ -22,9 +22,13 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #ifdef _WIN32
+  /* KLUDGE: From src/runtime/runtime.h, avoid double definition of
+     boolean.  We really should clean up our act on this one. */
+  #define boolean rpcndr_boolean
   #define WIN32_LEAN_AND_MEAN
   #include <windows.h>
   #include <shlobj.h>
+  #undef boolean
 #else
   #include <sys/times.h>
   #include <sys/wait.h>

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.