support for Microsoft Visual C. Also, older MinGW versions
seem to need stdint.h to find intptr_t.
+2007-07-22 Peter Rosin <peda@lysator.liu.se>
+
+ * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Add
+ support for Microsoft Visual C. Also, older MinGW versions
+ seem to need stdint.h to find intptr_t.
+
2007-07-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]:
cat <<"EOF"
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+#else
+# include <unistd.h>
+# include <stdint.h>
+#endif
#include <malloc.h>
#include <stdarg.h>
#include <assert.h>
# define S_IXGRP 0
#endif
+#ifdef _MSC_VER
+# define S_IXUSR _S_IEXEC
+# define stat _stat
+# ifndef _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#endif
+
#ifndef DIR_SEPARATOR
# define DIR_SEPARATOR '/'
# define PATH_SEPARATOR ':'