From: Wesley Smith Date: Thu, 12 Jun 2003 21:36:15 +0000 (+0000) Subject: Wrap boolean_t definition with _BOOLEAN_T_DEFINED. X-Git-Tag: v2.5.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a4332e4b0ab6845e01df8b6a80550341cff964e;p=thirdparty%2Fxfsprogs-dev.git Wrap boolean_t definition with _BOOLEAN_T_DEFINED. Wrap boolean_t definition with _BOOLEAN_T_DEFINED. --- diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index 8c6e5f7f9..5dff46cd4 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -111,8 +111,11 @@ typedef char* xfs_caddr_t; typedef unsigned char uchar_t; #define _UCHAR_T_DEFINED 1 #endif -typedef enum { B_FALSE,B_TRUE } boolean_t; +#ifndef _BOOLEAN_T_DEFINED + typedef enum { B_FALSE, B_TRUE } boolean_t; + #define _BOOLEAN_T_DEFINED 1 +#endif #elif defined(__FreeBSD__) diff --git a/include/xfs_types.h b/include/xfs_types.h index 38c28e921..67c460be0 100644 --- a/include/xfs_types.h +++ b/include/xfs_types.h @@ -54,7 +54,11 @@ typedef unsigned int __uint32_t; typedef signed long long int __int64_t; typedef unsigned long long int __uint64_t; -typedef enum { B_FALSE,B_TRUE } boolean_t; +#ifndef _BOOLEAN_T_DEFINED + typedef enum { B_FALSE, B_TRUE } boolean_t; + #define _BOOLEAN_T_DEFINED 1 +#endif + typedef __int64_t prid_t; /* project ID */ typedef __uint32_t inst_t; /* an instruction */