From: Peter Rosin Date: Sun, 22 Jul 2007 17:57:10 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Add X-Git-Tag: release-2-1b~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=781fc82e1b2bceaa5c55388d6ab1d1744663f992;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 917c4fb13..5c6db45e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-22 Peter Rosin + + * 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 * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index c42450c5e..647bfe773 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2507,7 +2507,13 @@ EOF cat <<"EOF" #include #include -#include +#ifdef _MSC_VER +# include +# include +#else +# include +# include +#endif #include #include #include @@ -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 ':'