Vadim Zeitlin <vz-libtool <at> zeitlins.org> writes: > And as this project build options also include "-std=c++0x", > __STRICT_ANSI__ is defined. For the compiler I use it would be enough to > add _CRTIMP in front of the declaration as this is how _putenv() is really > declared in /usr/i686-w64-mingw32/sys-root/mingw/include/stdlib.h but I'm > not sure if all MinGW versions define _CRTIMP. I did check that 3.4.5, > 4.4.0 and 4.5.0 (native, i.e. not Cygwin) MinGW versions do define it but I > don't have access to earlier versions any more. > > Does anybody know if _CRTIMP is safe to use for all MinGW versions?
After looking further, I think it is, so I sent the corresponding trivial patch to libtool-patches. Please let me know if you see any problems with it. Thanks, VZ _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool