[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Include _CRTIMP in _putenv() declaration in EXE wrapper sources.

From: Vadim Zeitlin
Subject: [PATCH] Include _CRTIMP in _putenv() declaration in EXE wrapper sources.
Date: Thu, 23 Jun 2011 11:34:35 +0200

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.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): Add _CRTIMP to
_putenv() declaration.

Signed-off-by: Vadim Zeitlin <address@hidden>
 libltdl/config/ltmain.m4sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 9358ec5..8e5c588 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -3388,7 +3388,7 @@ EOF
 /* declarations of non-ANSI functions */
 #if defined(__MINGW32__)
 # ifdef __STRICT_ANSI__
-int _putenv (const char *);
+_CRTIMP int _putenv (const char *);
 # endif
 #elif defined(__CYGWIN__)
 # ifdef __STRICT_ANSI__

Attachment: pgp5Evt_LDYn1.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]