Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171634499
D12667.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
689 B
Referenced Files
None
Subscribers
None
D12667.diff
View Options
Index: include/stddef.h
===================================================================
--- include/stddef.h
+++ include/stddef.h
@@ -70,7 +70,10 @@
#endif
#endif
+#ifndef _OFFSETOF_DECLARED
#define offsetof(type, member) __offsetof(type, member)
+#define _OFFSETOF_DECLARED
+#endif
#if __EXT1_VISIBLE
/* ISO/IEC 9899:2011 K.3.3.2 */
Index: sys/sys/stddef.h
===================================================================
--- sys/sys/stddef.h
+++ sys/sys/stddef.h
@@ -38,6 +38,9 @@
#define _PTRDIFF_T_DECLARED
#endif
+#ifndef _OFFSETOF_DECLARED
#define offsetof(type, field) __offsetof(type, field)
+#define _OFFSETOF_DECLARED
+#endif
#endif /* !_SYS_STDDEF_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 8:09 AM (51 m, 22 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38842773
Default Alt Text
D12667.diff (689 B)
Attached To
Mode
D12667: Guard offsetof
Attached
Detach File
Event Timeline
Log In to Comment