This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C99 and localtime_r
- From: Jim Marshall <jim dot marshall at wbemsolutions dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: alec at wbemsolutions dot com
- Date: Mon, 30 Jun 2003 12:18:14 -0400
- Subject: C99 and localtime_r
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 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.
Thank you
-Jim