mirror of
https://github.com/amd/blis.git
synced 2026-05-24 10:24:34 +00:00
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:
committed by
Dipal M Zambare
parent
f17d043e1c
commit
8e6da6b844
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user