mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r18673: define the macros even if we don't define bool ourself
metze (This used to be commit 65013a8d9e678c44cecae07967b7a001b796faf1)
This commit is contained in:
parent
7040796108
commit
bc6295c3ec
@ -324,17 +324,25 @@ char *rep_mkdtemp(char *template);
|
||||
#ifdef HAVE__Bool
|
||||
#define bool _Bool
|
||||
#else
|
||||
#define __bool_true_false_are_defined
|
||||
typedef int bool;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* to prevent <rpcsvc/yp_prot.h> from doing a redefine of 'bool'
|
||||
*
|
||||
* IRIX, HPUX, MacOS 10 and Solaris need BOOL_DEFINED
|
||||
* Tru64 needs _BOOL_EXISTS
|
||||
*/
|
||||
#ifndef BOOL_DEFINED
|
||||
#define BOOL_DEFINED
|
||||
#define _BOOL_EXISTS
|
||||
typedef int bool;
|
||||
#endif
|
||||
#ifndef _BOOL_EXISTS
|
||||
#define _BOOL_EXISTS
|
||||
#endif
|
||||
|
||||
#ifndef __bool_true_false_are_defined
|
||||
#define __bool_true_false_are_defined
|
||||
#endif
|
||||
|
||||
#ifndef true
|
||||
|
Loading…
x
Reference in New Issue
Block a user