From: kreuter Date: Sun, 18 Nov 2007 01:13:40 +0000 (+0000) Subject: 1.0.11.28: Fix one Win32 regression introduced by 1.0.11.26-27. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=b841aa690bada10da8c8db6eec361e3eeef0492c;p=sbcl.git 1.0.11.28: Fix one Win32 regression introduced by 1.0.11.26-27. * grovel-headers.c now pulls in src/code/runtime.h, and so needs a kludge to keep Win32's definition of boolean from conflicting with SBCL's. This kludge already existed in win32-os.c, so I moved it into runtime.h. --- diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 9525a17..eaa233a 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -141,7 +141,19 @@ native_pointer(lispobj obj) #define make_fixnum(n) ((lispobj)((n)<>N_FIXNUM_TAG_BITS) -/* Too bad ANSI C doesn't define "bool" as C++ does.. */ +#if defined(LISP_FEATURE_WIN32) +/* KLUDGE: Avoid double definition of boolean by rpcndr.h included via + * shlobj.h. + * + * FIXME: We should probably arrange to use the rpcndr.h boolean on Windows, + * or get rid of our own boolean type. If the boolean type is only used in + * the runtime, and never passed to Lisp, then it doesn't matter which one + * we use. + */ +#define boolean rpcndr_boolean +#include +#undef boolean +#endif typedef int boolean; /* This only works for static symbols. */ diff --git a/src/runtime/win32-os.c b/src/runtime/win32-os.c index 1d9635f..eab029e 100644 --- a/src/runtime/win32-os.c +++ b/src/runtime/win32-os.c @@ -51,16 +51,6 @@ #include #include -/* KLUDGE: Avoid double definition of boolean by rpcndr.h included via - * shlobj.h. - * - * FIXME: We should probably arrange to use the rpcndr.h boolean on Windows, - * or get rid of our own boolean type. - */ -#define boolean rpcndr_boolean -#include -#undef boolean - #include #include diff --git a/version.lisp-expr b/version.lisp-expr index 7dc4453..404f2fe 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"1.0.11.27" +"1.0.11.28"