From: Richard Kreckel Date: Sun, 6 Nov 2016 18:35:46 +0000 (+0100) Subject: Clean up some header files and fix compilation with MSC. X-Git-Tag: release_1-7-2~5 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=864d9d65c5ecd0b4fffa9162c156383fd5cb9951;p=ginac.git Clean up some header files and fix compilation with MSC. On MSC there is no . It turns out that we need to #include in order to use close(3). This fixes the build failure introduced in 8305ec38. Thanks to Jan Rheinländer for reporting this. --- diff --git a/acinclude.m4 b/acinclude.m4 index 0b6db8c1..53b45e5a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -34,7 +34,6 @@ AC_CACHE_CHECK([for standard C++ header files], [ginac_cv_std_cxx_headers], [ #include #include #include - #include #include #include #include diff --git a/check/mul_eval_memleak.cpp b/check/mul_eval_memleak.cpp index 7a349e87..4ddc2e23 100644 --- a/check/mul_eval_memleak.cpp +++ b/check/mul_eval_memleak.cpp @@ -96,7 +96,6 @@ g(1301*scale^(-1)))*eps^(-1)+F))\ #include #include #include -#include static void set_VM_limit(const unsigned long MB) { const unsigned mem_lim_kb = MB*1024*1024; diff --git a/check/timer.cpp b/check/timer.cpp index 01a7c793..46d173f0 100644 --- a/check/timer.cpp +++ b/check/timer.cpp @@ -22,7 +22,6 @@ #ifdef HAVE_RUSAGE #include -#include #include #else #include diff --git a/ginac/excompiler.cpp b/ginac/excompiler.cpp index 6b1ae4cc..04920158 100644 --- a/ginac/excompiler.cpp +++ b/ginac/excompiler.cpp @@ -36,10 +36,16 @@ #include "symbol.h" #ifdef HAVE_LIBDL -#include +# include #endif // def HAVE_LIBDL -#include -#include +#ifdef HAVE_UNISTD_H +# include +#else +# ifdef _MSC_VER +# include // for close(3) +# endif // def _MSC_VER +#endif // def HAVE_UNISTD_H +#include #include #include #include