chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH 1/1] Add _XOPEN_SOURCE feature test macro


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH 1/1] Add _XOPEN_SOURCE feature test macro
Date: Fri, 13 Jan 2017 16:08:03 +1300

This provides access to strptime(3) from <time.h>, which is otherwise
undefined on at least Cygwin and possibly other platforms.
---
 chicken.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/chicken.h b/chicken.h
index 4ae93e09..dec79aa3 100644
--- a/chicken.h
+++ b/chicken.h
@@ -47,6 +47,10 @@
 # define __C99FEATURES__
 #endif
 
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE
+#endif
+
 #ifndef _BSD_SOURCE
 # define _BSD_SOURCE
 #endif
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]