From: Shlomi Fish Date: Fri, 1 May 2020 10:24:28 +0000 (+0300) Subject: Require snprintf() without detection. X-Git-Tag: fortune-mod-2.26.0~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4888beb017eabd07f66eb3dd6e0f817d6d71ee83;p=fortune-mod Require snprintf() without detection. It is C99. --- diff --git a/fortune-mod/CMakeLists.txt b/fortune-mod/CMakeLists.txt index 66a88c0..08c8894 100644 --- a/fortune-mod/CMakeLists.txt +++ b/fortune-mod/CMakeLists.txt @@ -131,8 +131,6 @@ ENDIF () # So it can find config.h INCLUDE_DIRECTORIES(BEFORE "${CMAKE_CURRENT_BINARY_DIR}") -INCLUDE(CheckSymbolExists) -check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF) MACRO(my_exe exe c_file dir) SET(_files "${c_file}") diff --git a/fortune-mod/config.h.in b/fortune-mod/config.h.in index 9211a70..06d7573 100644 --- a/fortune-mod/config.h.in +++ b/fortune-mod/config.h.in @@ -16,8 +16,6 @@ extern "C" { #define OFFDIR "${OCOOKIEDIR}" #define FORTDIR "${COOKIEDIR}" -#cmakedefine HAVE_SNPRINTF - #ifdef __cplusplus } #endif