Prefer C library wrappers over C headers, where possible.
[ginac.git] / acinclude.m4
index 5471a53c455ac37d0d7377a40470553aef1bc63d..0b6db8c178d85ccfc4a85e93d2aec71069ad9245 100644 (file)
@@ -30,6 +30,9 @@ AC_CACHE_CHECK([for standard C++ header files], [ginac_cv_std_cxx_headers], [
        AC_LANG_PUSH([C++])
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
                #include <algorithm>
+               #include <cstddef>
+               #include <cstdio>
+               #include <cstdlib>
                #include <cstring>
                #include <cstddef>
                #include <cstdint>
@@ -81,7 +84,7 @@ else
        AC_CACHE_CHECK([for version of libreadline], [ginac_cv_rl_supported], [
                ginac_cv_rl_supported="no"
                AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-                       #include <stdio.h>
+                       #include <cstdio>
                        #include <readline/readline.h>
                        #if !defined(RL_VERSION_MAJOR) || !defined(RL_VERSION_MINOR)
                        #error "Ancient/unsupported version of readline"