mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 19:09:01 +00:00
Do not override snprintf in VS 2015 and newer
MSVC preprocessor triggers #error in <stdio.h> if redefined From MS doc: Beginning with the UCRT in Visual Studio 2015 and Windows 10, snprintf is no longer identical to _snprintf. The snprintf function behavior is now C99 standard compliant. Closes #2255
This commit is contained in:
@@ -292,7 +292,7 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list);
|
||||
#define putenv _putenv
|
||||
#define tzset _tzset
|
||||
|
||||
#if !defined(__GNUC__)
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user