mirror of
https://https.git.savannah.gnu.org/git/libtool.git
synced 2026-01-26 15:39:10 +00:00
libtool: Include _CRTIMP in _putenv() declaration in EXE wrapper sources.
Re-declaring _putenv() without _CRTIMP in strict ANSI mode when using MinGW resulted in a warning because of a conflict with the previous declaration that did use _CRTIMP. Simply add _CRTIMP to our declaration to avoid it. * build-aux/ltmain.in (func_emit_cwrapperexe_src): Add _CRTIMP to _putenv() declaration. Signed-off-by: Vadim Zeitlin <vz-libtool@zeitlins.org>
This commit is contained in:
parent
7464f1db29
commit
383a3807b7
@ -3663,7 +3663,7 @@ EOF
|
||||
/* declarations of non-ANSI functions */
|
||||
#if defined __MINGW32__
|
||||
# ifdef __STRICT_ANSI__
|
||||
int _putenv (const char *);
|
||||
_CRTIMP int __cdecl _putenv (const char *);
|
||||
# endif
|
||||
#elif defined __CYGWIN__
|
||||
# ifdef __STRICT_ANSI__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user