diff options
author | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 15:11:12 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 15:44:14 -0800 |
commit | 73a72cdb6154ab7bdd49b1dde91349a30e8d7973 (patch) | |
tree | 88a0a72b35a8a8cb8b3807ec8929e979ef2d89c9 | |
parent | 95b52b0504a7cb2bce36d72b8bb0825833500b4c (diff) | |
download | gperftools-73a72cdb6154ab7bdd49b1dde91349a30e8d7973.tar.gz |
don't check for snprintf
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/config.h.in | 3 | ||||
-rw-r--r-- | src/windows/config.h | 4 | ||||
-rw-r--r-- | src/windows/mingw.h | 2 | ||||
-rw-r--r-- | src/windows/port.h | 11 |
5 files changed, 0 insertions, 23 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f2440c0..55fe23d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,9 +200,6 @@ check_include_file("inttypes.h" HAVE_INTTYPES_H) # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from # AC_PC_FROM_UCONTEXT, below. -# for windows -check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF) - # We override a lot of memory allocation routines, not all of which are # standard. For those the system doesn't declare, we'll declare ourselves. set(CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=600) diff --git a/cmake/config.h.in b/cmake/config.h.in index 99e59e0..e9c8090 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -138,9 +138,6 @@ /* Define to 1 if you have the <sched.h> header file. */ #cmakedefine HAVE_SCHED_H -/* Define to 1 if you have the `snprintf' function. */ -#cmakedefine HAVE_SNPRINTF - /* Define to 1 if you have the <stdint.h> header file. */ #cmakedefine HAVE_STDINT_H diff --git a/src/windows/config.h b/src/windows/config.h index cb8b577..acc25e3 100644 --- a/src/windows/config.h +++ b/src/windows/config.h @@ -299,10 +299,6 @@ # define _WIN32_WINNT 0x0501 #endif -#if defined(_MSC_VER) && _MSC_VER >= 1900 -#define HAVE_SNPRINTF 1 -#endif - // We want to make sure not to ever try to #include heap-checker.h #define NO_HEAP_CHECK 1 diff --git a/src/windows/mingw.h b/src/windows/mingw.h index c91a313..4bb1535 100644 --- a/src/windows/mingw.h +++ b/src/windows/mingw.h @@ -54,8 +54,6 @@ # define _WIN32_WINNT 0x0501 #endif -#define HAVE_SNPRINTF 1 - // Some mingw distributions have a pthreads wrapper, but it doesn't // work as well as native windows spinlocks (at least for us). So // pretend the pthreads wrapper doesn't exist, even when it does. diff --git a/src/windows/port.h b/src/windows/port.h index f5dda88..29c6cb9 100644 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -318,17 +318,6 @@ inline int perftools_vsnprintf(char *str, size_t size, const char *format, } #endif -#ifndef HAVE_SNPRINTF -inline int snprintf(char *str, size_t size, const char *format, ...) { - va_list ap; - int r; - va_start(ap, format); - r = perftools_vsnprintf(str, size, format, ap); - va_end(ap); - return r; -} -#endif - #ifndef HAVE_INTTYPES_H #define PRIx64 "I64x" #define SCNx64 "I64x" |