This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C99 and localtime_r
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: Jim Marshall <jim dot marshall at wbemsolutions dot com>
- Cc: gcc-help at gcc dot gnu dot org, alec at wbemsolutions dot com
- Date: 30 Jun 2003 17:02:24 -0700
- Subject: Re: C99 and localtime_r
- References: <3F0062C6.3080101@wbemsolutions.com>
Jim Marshall <jim.marshall@wbemsolutions.com> writes:
> Hello,
> If this is the wrong mailing list, please direct me to the correct
> one, thanks.
> I am having a terrible time with something. I have a need to utilize
> the wprintf series of functions (wide character). I was told in an
> earlier request that i had to use the "-std=c99" switch in order for
Try -std=gnu99 instead.
> these functions to be available. However; I am now running into
> problems with the "localtime_r" function. If I define the C99 switch I
> get warnings on the localtime_r function (not being defined). I've
> tried adding various -d symbols (-D__USE_POSIX etc...). Nothing
> works. In fact some of the code we have written utilizes the
> 'timezone' variable defined by libc (set by tzset), and with C99
> defined that variable is not available (without explicitly declaring
> it as extern by us).
> Ideally we need to utilize the wprintf functions and the localtime_r
> function without getting any warnings. is this possible?
> I can provide a simple test case if you need.
That would be helpful.