From 383a3807b7ce2bcdae72a73329593dc4cdc4dbea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Jun 2011 11:34:35 +0200 Subject: [PATCH] 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 --- build-aux/ltmain.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 6e992f77c..34af382a6 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -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__ -- 2.47.3