~ chicken-core (chicken-5) f01e666271defbb64548aece9c18bc4378666b24


commit f01e666271defbb64548aece9c18bc4378666b24
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:36:34 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 4ae93e09..efb95117 100644
--- a/chicken.h
+++ b/chicken.h
@@ -47,6 +47,10 @@
 # define __C99FEATURES__
 #endif
 
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 700
+#endif
+
 #ifndef _BSD_SOURCE
 # define _BSD_SOURCE
 #endif
Trap