tags 325743 wontfix
thanks

> strptime.3 says:
> 
>       #define _XOPEN_SOURCE /* glibc2 needs this */
>       #include <time.h>
>       
>       char *strptime(const char *s, const char *format, struct tm *tm);
> 
> But, I had to #define __USE_XOPEN instead (after reading time.h).
> Maybe those two #defines are somehow linked?  I can't see that they
> are.  Or maybe -std=gnu99 or gcc4 is different?  I don't know.

Hi Justin,

The man-page is correct here.  Somewhere along the way, you 
are doing something wrong.  If you can't make things work,
try submitting the simplest possible program that demonstrates
_XOPEN_SOURCE does not do the job, and also show what "cc"
command line you are using.

Also, the __USE macros are never to be used in applications.
Read <features.h>.

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to