diff --git a/frame/include/bli_type_defs.h b/frame/include/bli_type_defs.h index 7c75af1cf..7b8f3bf70 100644 --- a/frame/include/bli_type_defs.h +++ b/frame/include/bli_type_defs.h @@ -48,6 +48,7 @@ #elif __STDC_VERSION__ >= 199901L // For C99 (or later), include stdint.h. #include + #include #else // When stdint.h is not available, manually typedef the types we will use. #ifdef _WIN32 @@ -87,20 +88,19 @@ typedef unsigned long int guint_t; // -- Boolean type -- -typedef gint_t bool_t; - - -// -- Boolean values -- +typedef bool bool_t; +// BLIS uses TRUE and FALSE macro constants as possible boolean values, but we +// define these macros in terms of true and false, respectively, which are +// defined by C99 in stdbool.h. #ifndef TRUE - #define TRUE 1 + #define TRUE true #endif #ifndef FALSE - #define FALSE 0 + #define FALSE false #endif - // -- Special-purpose integers -- // This cpp guard provides a temporary hack to allow libflame