~ chicken-core (chicken-5) 181f21d3646340e2085932fcba6761e3ce22bebc
commit 181f21d3646340e2085932fcba6761e3ce22bebc Author: Evan Hanson <evhan@foldling.org> AuthorDate: Fri Jan 13 16:08:03 2017 +1300 Commit: Evan Hanson <evhan@foldling.org> CommitDate: Tue Jan 17 10:37:20 2017 +1300 Add _XOPEN_SOURCE feature test macro This provides access to strptime(3) from <time.h>, which is otherwise undefined on at least Cygwin and possibly other platforms. Signed-off-by: Peter Bex <peter@more-magic.net> diff --git a/chicken.h b/chicken.h index 76661a7c..fed1a4aa 100644 --- a/chicken.h +++ b/chicken.h @@ -41,6 +41,10 @@ # define __C99FEATURES__ #endif +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 700 +#endif + #ifndef _BSD_SOURCE # define _BSD_SOURCE #endifTrap