From beecb90440af7cb59e31ffc708fdb7ad53932b6b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 21 Sep 2006 08:48:18 +0000 Subject: r18784: hopefully fix the BOOL bug on AIX metze (This used to be commit 454d9590de6ff94a1edd7321e26af0f0978a356a) --- source3/lib/replace/replace.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/lib/replace') diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h index 61adb999d9..edcdebe6bd 100644 --- a/source3/lib/replace/replace.h +++ b/source3/lib/replace/replace.h @@ -333,6 +333,7 @@ typedef int bool; * * IRIX, HPUX, MacOS 10 and Solaris need BOOL_DEFINED * Tru64 needs _BOOL_EXISTS + * AIX needs _BOOL,_TRUE,_FALSE */ #ifndef BOOL_DEFINED #define BOOL_DEFINED @@ -340,6 +341,9 @@ typedef int bool; #ifndef _BOOL_EXISTS #define _BOOL_EXISTS #endif +#ifndef _BOOL +#define _BOOL +#endif #ifndef __bool_true_false_are_defined #define __bool_true_false_are_defined @@ -352,6 +356,13 @@ typedef int bool; #define false (0) #endif +#ifndef _TRUE +#define _TRUE +#endif +#ifndef _FALSE +#define _FALSE +#endif + #ifndef HAVE_FUNCTION_MACRO #ifdef HAVE_func_MACRO #define __FUNCTION__ __func__ -- cgit