[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] strptime() and __USE_XOPEN
On Thu, 5 Mar 2009, Vincent Rivière wrote:
David Brownlee wrote:
Whats the recommended way to ensure strptime() (which is
under __USE_XOPEN) is available under MiNT?
The answer is explained at the top of this file:
http://sparemint.org/cgi-bin/cvsweb/mintlib/include/features.h.in?rev=1.8&content-type=text/x-cvsweb-markup
Usually, the best way to enable all extensions is to compile with
-D_GNU_SOURCE
Great thanks! The app I have conditionally enables _GNU_SOURCE
for __linux__ in the sourcefile that needs strptime(), so I can
just add __MINT__ to that #if :)