Clean up some header files and fix compilation with MSC.
[ginac.git] / ginac / excompiler.cpp
index 6b1ae4cca7def3b219891ddd31ea3a9ff7be63ba..04920158a1140ddda3f1ec1a0cd191ea53bf04bb 100644 (file)
 #include "symbol.h"
 
 #ifdef HAVE_LIBDL
-#include <dlfcn.h>
+# include <dlfcn.h>
 #endif // def HAVE_LIBDL
-#include <unistd.h>
-#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#else
+# ifdef _MSC_VER
+#  include <io.h>  // for close(3)
+# endif // def _MSC_VER
+#endif // def HAVE_UNISTD_H
+#include <cstdlib>
 #include <fstream>
 #include <ios>
 #include <sstream>