Added the checks to not defining the bool type for C++ code in windows to avoid redefinition build time errror.

AMD-Internal: [CPUPL-2037]
Change-Id: I065da9206ab06f60876324f258ee12fb9fe83f88
This commit is contained in:
Chandrashekara K R
2022-04-13 10:03:27 +05:30
committed by Dipal M Zambare
parent f17d043e1c
commit 8e6da6b844

View File

@@ -89,10 +89,14 @@ typedef unsigned long int guint_t;
// -- Boolean type --
// NOTE: bool_t is no longer used and has been replaced with C99's bool type.
// Not defining the bool type for C++ code in windows platform to avoid
// duplicate definition build error.
#ifdef _WIN32
#ifndef __cplusplus
#undef bool
typedef gint_t bool;
#endif
#endif
// 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.