]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Wrap boolean_t definition with _BOOLEAN_T_DEFINED.
authorWesley Smith <wessmith@sgi.com>
Thu, 12 Jun 2003 21:36:15 +0000 (21:36 +0000)
committerWesley Smith <wessmith@sgi.com>
Thu, 12 Jun 2003 21:36:15 +0000 (21:36 +0000)
Wrap boolean_t definition with _BOOLEAN_T_DEFINED.

include/platform_defs.h.in
include/xfs_types.h

index 8c6e5f7f9d202787881f9aa98f7b35b2dea269ef..5dff46cd4a15ee3a7817ee9e0eeb4f228ac5e3f2 100644 (file)
@@ -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__)
 
index 38c28e9215619772fb8ff69dfbbefe59de7e93f6..67c460be09d50107c8d2095684b39e6300b6787a 100644 (file)
@@ -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 */