make clang mingw32 not use builtin overflow functions

This commit is contained in:
ado 2021-02-23 02:25:24 +01:00
parent bdb07bcc32
commit e3c098246d

View File

@ -35,7 +35,9 @@ inline std::optional<short> from_char(char c) {
return std::nullopt; return std::nullopt;
} }
#if defined(__clang__) || defined(__GNUC__) || defined(__GUNG__) // mingw32 clang does not support some of the builtin functions
#if (defined(__clang__) && (!defined(__MINGW32__) || defined(__MINGW64__))) || \
defined(__GNUC__) || defined(__GUNG__)
//////////////// ////////////////
// mul overflow detection // mul overflow detection
//////////////// ////////////////