Skip to content

Commit 3eb8177

Browse files
committed
Unions only
1 parent c478d94 commit 3eb8177

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Include/pymacro.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@
8787
#endif
8888

8989

90-
// _Py_ANONYMOUS: modifier for declaring an anonymous struct/union.
90+
// _Py_ANONYMOUS: modifier for declaring an anonymous union.
9191
// Usage: _Py_ANONYMOUS union { ... };
9292
// Standards/compiler support:
93-
// - nothing needed in C++
94-
// - nothing needed in C11 and above
93+
// - C++ allows anonymous unions, but not structs
94+
// - C11 and above allows anonymous unions and structs
9595
// - MSVC has warning(disable: 4201) "nonstandard extension used : nameless
9696
// struct/union". This is specific enough that we disable it for all of
9797
// Python.h.

0 commit comments

Comments
 (0)