From: Matthew Fernandez Date: Sat, 30 Jan 2021 21:58:34 +0000 (-0800) Subject: remove vsnprintf detection X-Git-Tag: 2.46.1~4^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeacfcd432569da5b7b23f6492f0e1a7b2c16632;p=graphviz remove vsnprintf detection We no longer depend on this and simply assume vsnprintf is available. --- diff --git a/cmake/config_checks.cmake b/cmake/config_checks.cmake index ca8a7dd87..98d67f86a 100644 --- a/cmake/config_checks.cmake +++ b/cmake/config_checks.cmake @@ -35,7 +35,6 @@ check_function_exists( setenv HAVE_SETENV ) check_function_exists( setmode HAVE_SETMODE ) check_function_exists( sincos HAVE_SINCOS ) check_function_exists( srand48 HAVE_SRAND48 ) -check_function_exists( vsnprintf HAVE_VSNPRINTF ) # Type checks # The function check_size_type also checks if the type exists diff --git a/config-cmake.h.in b/config-cmake.h.in index 831d9364f..0e3229e9b 100644 --- a/config-cmake.h.in +++ b/config-cmake.h.in @@ -32,7 +32,6 @@ #cmakedefine HAVE_SETMODE #cmakedefine HAVE_SINCOS #cmakedefine HAVE_SRAND48 -#cmakedefine HAVE_VSNPRINTF // Types #cmakedefine HAVE_SSIZE_T diff --git a/configure.ac b/configure.ac index 3f8c70789..4c08de18d 100644 --- a/configure.ac +++ b/configure.ac @@ -465,7 +465,7 @@ LIBS=$save_LIBS # Checks for library functions AC_CHECK_FUNCS([lrand48 drand48 srand48 setmode setenv getenv \ - cbrt vsnprintf mallopt mallinfo mstats getpagesize \ + cbrt mallopt mallinfo mstats getpagesize \ ftruncate lseek64 stat64 vfork unlink waitpid select]) AC_REPLACE_FUNCS([strcasestr]) diff --git a/windows/include/config.h b/windows/include/config.h index 7051c52d2..aee2ba86c 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -257,9 +257,6 @@ /* Define to 1 if you have the header file. */ //#define HAVE_UNISTD_H 1 -/* Define to 1 if you have the `vsnprintf' function. */ -#define HAVE_VSNPRINTF 1 - /* Define to 1 if you have the header file. */ /* #undef HAVE_X11_INTRINSIC_H */