[Patches] Fix compiler warning on Linux

Greg Ward gward@mems-exchange.org
Tue, 30 May 2000 09:01:44 -0400


On 30 May 2000, Fredrik Lundh said:
> umm.  according to my copy of features.h, __USE_XOPEN is an
> *internal* GNU-specific thingie.  any reason you cannot do this
> in a portable way, and use
> 
>     #define _XOPEN_SOURCE
> 
> instead, just as the unix specifications say?

Ummm, 'cause I didn't know about it?  ;-)

Anyways, are we at least all agreed that #define'ing some macro that
makes glibc's <time.h> declare 'strptime()' is preferred to declaring
'strptime()' ourselves, or doing a typecast?

If /F says that #define'ing _XOPEN_SOURCE is the way to do it, I'll do
that.  I'll have to test it first though, and right now my Linux box
appears to be running some other operating system... umm yes, it's this
"Windows NT" thing.  Curses!  I'll have to redo the patch later today,
unless someone tests it with _XOPEN_SOURCE and promises that it really
truly honestly works.

        Greg
-- 
Greg Ward - software developer                gward@mems-exchange.org
MEMS Exchange / CNRI                           voice: +1-703-262-5376
Reston, Virginia, USA                            fax: +1-703-262-5367