From 4888beb017eabd07f66eb3dd6e0f817d6d71ee83 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 1 May 2020 13:24:28 +0300 Subject: [PATCH] Require snprintf() without detection. It is C99. --- fortune-mod/CMakeLists.txt | 2 -- fortune-mod/config.h.in | 2 -- 2 files changed, 4 deletions(-) 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 -- 2.40.0