]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Include _CRTIMP in _putenv() declaration in EXE wrapper sources.
authorVadim Zeitlin <vz-libtool@zeitlins.org>
Thu, 23 Jun 2011 09:34:35 +0000 (11:34 +0200)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 05:58:07 +0000 (00:58 -0500)
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>
build-aux/ltmain.in

index 6e992f77cdad15e460f8b44d3ebc48ef7187f43f..34af382a67df56f1905f125c988f18d6b43c84db 100644 (file)
@@ -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__