mirror of
https://github.com/red0124/ssp.git
synced 2025-02-02 16:51:12 +01:00
make clang mingw32 not use builtin overflow functions
This commit is contained in:
parent
bdb07bcc32
commit
e3c098246d
@ -35,7 +35,9 @@ inline std::optional<short> from_char(char c) {
|
||||
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
|
||||
////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user