mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r18784: hopefully fix the BOOL bug on AIX
metze
This commit is contained in:
parent
0a198e6096
commit
454d9590de
@ -21,9 +21,9 @@
|
||||
#ifndef ADT_TREE_H
|
||||
#define ADT_TREE_H
|
||||
|
||||
#ifndef _BOOL
|
||||
#ifndef _UPPER_BOOL
|
||||
typedef int BOOL;
|
||||
#define _BOOL
|
||||
#define _UPPER_BOOL
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -612,9 +612,9 @@ struct timespec {
|
||||
#define MAX(a,b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef _BOOL
|
||||
#ifndef _UPPER_BOOL
|
||||
typedef int BOOL;
|
||||
#define _BOOL /* So we don't typedef BOOL again in vfs.h */
|
||||
#define _UPPER_BOOL
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BROKEN_GETGROUPS
|
||||
|
@ -93,9 +93,9 @@ typedef struct {
|
||||
uint32 attr;
|
||||
} LUID_ATTR;
|
||||
|
||||
#ifndef _BOOL
|
||||
#ifndef _UPPER_BOOL
|
||||
typedef int BOOL;
|
||||
#define _BOOL /* So we don't typedef BOOL again in vfs.h */
|
||||
#define _UPPER_BOOL
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
|
@ -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__
|
||||
|
@ -279,10 +279,9 @@ TXT 16 text strings
|
||||
|
||||
typedef long HANDLE;
|
||||
|
||||
#ifndef _BOOL
|
||||
#ifndef _UPPER_BOOL
|
||||
typedef int BOOL;
|
||||
|
||||
#define _BOOL /* So we don't typedef BOOL again */
|
||||
#define _UPPER_BOOL
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -95,8 +95,8 @@ typedef char pstring[PSTRING_LEN];
|
||||
typedef char fstring[FSTRING_LEN];
|
||||
#endif
|
||||
|
||||
#ifndef _BOOL
|
||||
#define _BOOL /* So we don't typedef BOOL again in vfs.h */
|
||||
#ifndef _UPPER_BOOL
|
||||
#define _UPPER_BOOL
|
||||
#define False (0)
|
||||
#define True (1)
|
||||
#define Auto (2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user