]> www.ginac.de Git - ginac.git/blobdiff - cmake/modules/FindReadline.cmake
Prefer C library wrappers over C headers, where possible.
[ginac.git] / cmake / modules / FindReadline.cmake
index ab3e8f917a9b1e917346056619faf6c957494d32..007fc5b80f5f771774bd3a33e1a212af228f4196 100644 (file)
@@ -21,7 +21,7 @@ if (READLINE_INCLUDE_DIRS AND READLINE_LIBRARIES)
        set(_save_req_includes ${CMAKE_REQUIRED_INCLUDES})
        set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${READLINE_INCLUDE_DIR})
        check_cxx_source_compiles("
-               #include <stdio.h>
+               #include <cstdio>
                #include <readline/readline.h>
                #if !defined(RL_VERSION_MAJOR) || !defined(RL_VERSION_MINOR)
                #error Ancient version of readline