Chris Pickett <[email protected]> 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, [email protected] 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."
