Author: ivan Date: Wed Jul 1 18:02:49 2026 New Revision: 1935780 Log: Follow-up to r1934920: CMake: Fix check for snprintf(). The snprintf() function is located in <stdio.h>, not <string.h> [1]
[1]: https://en.cppreference.com/c/io/fprintf * CMakeLists.txt (): Use "stdio.h" instead of "string.h" in autocheck_symbol_exists(snprintf) Modified: subversion/trunk/CMakeLists.txt Modified: subversion/trunk/CMakeLists.txt ============================================================================== --- subversion/trunk/CMakeLists.txt Wed Jul 1 17:37:31 2026 (r1935779) +++ subversion/trunk/CMakeLists.txt Wed Jul 1 18:02:49 2026 (r1935780) @@ -891,7 +891,7 @@ macro(autocheck_symbol_exists SYMBOL FIL endif() endmacro() -autocheck_symbol_exists("snprintf" "string.h" HAVE_SNPRINTF) +autocheck_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF) autocheck_include_files("elf.h" HAVE_ELF_H) autocheck_include_files("inttypes.h" HAVE_INTTYPES_H)
