We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c478d94 commit 3eb8177Copy full SHA for 3eb8177
1 file changed
Include/pymacro.h
@@ -87,11 +87,11 @@
87
#endif
88
89
90
-// _Py_ANONYMOUS: modifier for declaring an anonymous struct/union.
+// _Py_ANONYMOUS: modifier for declaring an anonymous union.
91
// Usage: _Py_ANONYMOUS union { ... };
92
// Standards/compiler support:
93
-// - nothing needed in C++
94
-// - nothing needed in C11 and above
+// - C++ allows anonymous unions, but not structs
+// - C11 and above allows anonymous unions and structs
95
// - MSVC has warning(disable: 4201) "nonstandard extension used : nameless
96
// struct/union". This is specific enough that we disable it for all of
97
// Python.h.
0 commit comments