Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146317339
D29902.id87907.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
638 B
Referenced Files
None
Subscribers
None
D29902.id87907.diff
View Options
Index: sys/sys/cdefs.h
===================================================================
--- sys/sys/cdefs.h
+++ sys/sys/cdefs.h
@@ -718,6 +718,16 @@
#define __POSIX_VISIBLE 198808
#define __ISO_C_VISIBLE 0
#endif /* _POSIX_C_SOURCE */
+/*
+ * glibc automatically enables c11 features when using a c11 compiler, even in
+ * strict POSIX mode. As an extension to POSIX, allow c11 features when
+ * _ISOC11_SOURCE is defined along side _POSIX_C_SOURCE to ease porting
+ * of software written under glibc.
+ */
+#if _ISOC11_SOURCE
+#undef __ISO_C_VISIBLE
+#define __ISO_C_VISIBLE 2011
+#endif
#else
/*-
* Deal with _ANSI_SOURCE:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 4:50 PM (21 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29164516
Default Alt Text
D29902.id87907.diff (638 B)
Attached To
Mode
D29902: headers: Implement _ISOC11_SOURCES macro when __POSIX_C_SOURCE defined
Attached
Detach File
Event Timeline
Log In to Comment