]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Add
authorPeter Rosin <peda@lysator.liu.se>
Sun, 22 Jul 2007 17:57:10 +0000 (17:57 +0000)
committerPeter Rosin <peda@lysator.liu.se>
Sun, 22 Jul 2007 17:57:10 +0000 (17:57 +0000)
support for Microsoft Visual C. Also, older MinGW versions
seem to need stdint.h to find intptr_t.

ChangeLog
libltdl/config/ltmain.m4sh

index 917c4fb13e258ee62de7437e3b10c3b546ad399a..5c6db45e4e9a1f0ae1bf11e9d035809d9fa04a57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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]:
index c42450c5e3ab515c8667b627e04b16684f84efff..647bfe77323bb59e18d5d366804ab8ead4539b3f 100644 (file)
@@ -2507,7 +2507,13 @@ EOF
            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>
@@ -2531,6 +2537,14 @@ EOF
 # 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 ':'