Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153655954
D22817.id65666.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
869 B
Referenced Files
None
Subscribers
None
D22817.id65666.diff
View Options
Index: include/stdlib.h
===================================================================
--- include/stdlib.h
+++ include/stdlib.h
@@ -315,7 +315,7 @@
/* Deprecated interfaces, to be removed. */
static inline void
-__attribute__((__deprecated__("sranddev to be removed in FreeBSD 13")))
+__deprecated("sranddev to be removed in FreeBSD 13")
sranddev(void)
{
}
Index: sys/sys/cdefs.h
===================================================================
--- sys/sys/cdefs.h
+++ sys/sys/cdefs.h
@@ -468,6 +468,14 @@
#define __hidden
#endif
+#if __GNUC__ > 4 || defined(__clang__)
+#define __deprecated(m) __attribute__((__deprecated__(m)))
+#elif defined(__GNUC__)
+#define __deprecated(m) __attribute__((__deprecated__))
+#else
+#define __deprecated(m)
+#endif
+
/*
* We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
* require it.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 23, 4:53 PM (7 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32034401
Default Alt Text
D22817.id65666.diff (869 B)
Attached To
Mode
D22817: cdefs: Add __deprecated(message) function attribute macro
Attached
Detach File
Event Timeline
Log In to Comment