bug-autoconf
[Top][All Lists]
Advanced

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

Re: strdup falsely detected when CFLAGS contains -ansi on MSYS/MinGW (gc


From: Andreas Schwab
Subject: Re: strdup falsely detected when CFLAGS contains -ansi on MSYS/MinGW (gcc)
Date: Mon, 29 Dec 2008 09:55:03 +0100
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.3 (gnu/linux)

Chris Pickett <address@hidden> writes:

> When -ansi is passed to GCC, strdup becomes unavailable on MSYS/MinGW, but
> autoconf still detects the existence of strdup.  The mingw string.h is in
> /mingw/include/string.h, and includes some funny stuff with #ifndef
> __STRICT_ANSI__ and later #ifndef _NO_OLDNAMES.  The former gets defined
> by GCC with -ansi, the latter I couldn't see where it gets defined if at
> all.

If you want to use extensions you should use AC_USE_SYSTEM_EXTENSIONS.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstra├če 5, 90409 N├╝rnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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