[Vortex] Patch for axl C99 incompatibility
jens at mooseyard.com
Wed Dec 12 22:30:54 CET 2007
Recent versions of axl, and thus vortex, aren't compatible with C99 --
their public headers result in syntax errors when #included. This is
because axl_decl.h contains a typedef declaration for "bool", which is
already a built-in type in C99.
The following one-line patch fixes the problem. It was already present
in the older copy of axl I had before upgrading today; I no longer
remember whether I made the change myself, or whether it was in the
official sources as of last summer but somehow vanished since then.
--- axl_decl ORIGINAL.h 2007-12-12 13:20:28.000000000 -0800
+++ axl_decl.h 2007-12-12 13:22:18.000000000 -0800
@@ -645,7 +645,7 @@
* Internal definition to retain compatibility with programs that
* define the bool value but the compiler doesn't provide it.
+#if !defined(__cplusplus) && !defined(__bool_true_false_are_defined)
typedef int bool;
More information about the Vortex