diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-29 01:10:25 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-29 01:10:25 -0800 |
commit | c1094815c32229f15a3eee2a54e7647c67d79e56 (patch) | |
tree | 1963f314a07cdeb8c9265be63bc32e8781bb7285 /netdissect-stdinc.h | |
parent | 494c8096e0881e4f82440bc7b0b41b6969cd92b9 (diff) | |
download | tcpdump-c1094815c32229f15a3eee2a54e7647c67d79e56.tar.gz |
Let CMake figure out whether we have snprintf() or not.
Now that we're using check_symbol_exists(), CMake can find it, so we
don't need to check the compiler version - and this avoids a warning
about redefining HAVE_SNPRINTF.
Diffstat (limited to 'netdissect-stdinc.h')
-rw-r--r-- | netdissect-stdinc.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h index fa7a790c..d78b6639 100644 --- a/netdissect-stdinc.h +++ b/netdissect-stdinc.h @@ -288,18 +288,6 @@ typedef char* caddr_t; #endif /* _WIN32 */ -#ifdef _MSC_VER - /* - * MSVC. - */ - #if _MSC_VER >= 1900 - /* - * VS 2015 or newer; we have snprintf() function. - */ - #define HAVE_SNPRINTF - #endif -#endif - /* * Function attributes, for various compilers. */ |