]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Let CMake figure out whether we have snprintf() or not.
authorGuy Harris <[email protected]>
Mon, 29 Jan 2018 09:10:25 +0000 (01:10 -0800)
committerGuy Harris <[email protected]>
Mon, 29 Jan 2018 09:10:25 +0000 (01:10 -0800)
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.

netdissect-stdinc.h

index fa7a790c890748961347e6fa34ac4e45a589e3a7..d78b66395f1b2c515afeae78dd2738f36060b1aa 100644 (file)
@@ -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.
  */