* 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.
This commit is contained in:
Peter Rosin 2007-07-22 17:57:10 +00:00
parent b3251f4d7e
commit 781fc82e1b
2 changed files with 21 additions and 1 deletions

View File

@ -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]:

View 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 ':'