]> granicus.if.org Git - fortune-mod/commitdiff
Require snprintf() without detection.
authorShlomi Fish <shlomif@shlomifish.org>
Fri, 1 May 2020 10:24:28 +0000 (13:24 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Fri, 1 May 2020 10:24:28 +0000 (13:24 +0300)
It is C99.

fortune-mod/CMakeLists.txt
fortune-mod/config.h.in

index 66a88c0e1bd83efc9dfbc0ea8909b22caf1dd654..08c8894590d29eacec73a29e8ae5de96f4c44345 100644 (file)
@@ -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}")
index 9211a70b6eb3db3eab148b82038a9960c0ef9e2a..06d757392d49987a5065f4eada82cde77089e377 100644 (file)
@@ -16,8 +16,6 @@ extern "C" {
 #define OFFDIR "${OCOOKIEDIR}"
 #define FORTDIR "${COOKIEDIR}"
 
-#cmakedefine HAVE_SNPRINTF
-
 #ifdef __cplusplus
 }
 #endif