From: Tim Kientzle Date: Sun, 13 Dec 2009 23:53:17 +0000 (-0500) Subject: We no longer use %jd or %lld from the system printf, so X-Git-Tag: v2.8.0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ea0216934ca94461eab95c3c6c5f316a158f772;p=thirdparty%2Flibarchive.git We no longer use %jd or %lld from the system printf, so we don't need to test for them. SVN-Revision: 1735 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 92aac98b7..26fe2117a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -686,32 +686,6 @@ IF(ENABLE_ACL) CHECK_SYMBOL_EXISTS(ACL_USER "${INCLUDES}" HAVE_ACL_USER) ENDIF(ENABLE_ACL) -# Check whether printf() supports "%jd" -CHECK_C_SOURCE_RUNS(" - #include - #include - #include - static char buf[100]; - int main() { - sprintf(buf, \"%jd\", (intmax_t)7); - if (strcmp(buf, \"7\")) return 1; - sprintf(buf, \"%ju\", (uintmax_t)7); - return (strcmp(buf, \"7\")); - }" HAVE_PRINTF_JD) - -# Check whether printf() supports "%lld" -CHECK_C_SOURCE_RUNS(" - #include - #include - #include - static char buf[100]; - int main() { - sprintf(buf, \"%lld\", (long long)7); - if (strcmp(buf, \"7\")) return 1; - sprintf(buf, \"%llu\", (long long)7); - return (strcmp(buf, \"7\")); - }" HAVE_PRINTF_LLD) - # Generate "config.h" from "build/cmake/config.h.in" CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index 2a8026949..85137407e 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -353,12 +353,6 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_POLL_H 1 -/* Define to 1 if printf() supports "%ju" and "%jd" */ -#cmakedefine HAVE_PRINTF_JD 1 - -/* Define to 1 if printf() supports "%llu" and "%lld" */ -#cmakedefine HAVE_PRINTF_LLD 1 - /* Define to 1 if you have the header file. */ #cmakedefine HAVE_PROCESS_H 1