Merge branch 'master' of https://github.com/kelleymh/fio
[fio.git] / lib / types.h
index 287a3b42b7c462e1cb43cc1f7869e4fb93068fff..236bf8a3a8f4be7b56554ef0fef618f29c118be1 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef FIO_TYPES_H
 #define FIO_TYPES_H
 
-#ifndef CONFIG_HAVE_BOOL
+#if !defined(CONFIG_HAVE_BOOL) && !defined(__cplusplus)
 typedef int bool;
 #ifndef false
 #define false  0
@@ -10,7 +10,7 @@ typedef int bool;
 #define true   1
 #endif
 #else
-#include <stdbool.h>
+#include <stdbool.h> /* IWYU pragma: export */
 #endif
 
 #endif