Fix a Windows-specific preproc condition
Review Request #2702 — Created Oct. 25, 2023 and submitted
In MSVC 2019,
vsnprintf
became a real function that correctly matches the C99 standard, and as it's no longer a macro, it cannot be#undef
'd. This causes a Macro redefinition conflict with the Standard Library function.I assume that the only two options here were Mingw and MSVC. I would guess Cygwin would also fall under Mingw. I also assumed that the "not cross-compiling" meant MSVC. So this condition should now correctly target either of those two options.
Compiled on MSVC, and it no longer errored.
Summary | ID |
---|---|
eff18cd71e3f37136072d349887197f68fbef924 |
Description | From | Last Updated |
---|---|---|
Does #ifdef work on non-macros? I didn't think it did, so couldn't we just use #ifdef vsnprintf? |
grim |