|
From: | Roumen Petrov |
Subject: | Re: msys/mingw warnings about string length and putenv absence with gcc -Wall -ansi |
Date: | Tue, 30 Dec 2008 23:21:21 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18) Gecko/20081114 SeaMonkey/1.1.13 |
Charles Wilson wrote: [SNIP]
What we want is this (the _putenv indirection for mingw is in case the surrounding package -- or a new gcc -- turns off libmoldnames): #ifdef _MSC_VER
[SNIP]
+# ifdef __MINGW32__ +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +define putenv _putenv +# endif +# endif
[SNIP]If oldnames is turned off may we always define putenv as _putenv for mingw host ?
May be this impact more functions. I just remove -lmoldname from gcc (mingw) 3.4.5 specs file and link of an 2.2.6 wrapper script fail with undefined reference to `_setmode', `_stat', `_chmod', `_getcwd' and `_putenv'.
I guess that for MCVS and GCC(mingw) we may use "#define xxx _xxx" for all those functions.
Roumen
[Prev in Thread] | Current Thread | [Next in Thread] |