Enable nameless structures in C++ for gcc >= 3.x (discovery and testing done by Dan Kegel).
diff --git a/include/winnt.h b/include/winnt.h index 3272b83..a377c4b 100644 --- a/include/winnt.h +++ b/include/winnt.h
@@ -140,8 +140,8 @@ # define NONAMELESSSTRUCT # define NONAMELESSUNION #else -/* Anonymous struct support starts with gcc 2.96 */ -# if !defined(NONAMELESSSTRUCT) && (defined(__GNUC__) && (defined(__cplusplus) || ((__GNUC__ < 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ < 96))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) +/* Anonymous struct support starts with gcc 2.96 or gcc/g++ 3.x */ +# if !defined(NONAMELESSSTRUCT) && (defined(__GNUC__) && ((__GNUC__ < 2) || ((__GNUC__ == 2) && (defined(__cplusplus) || (__GNUC_MINOR__ < 96))))) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) # define NONAMELESSSTRUCT # endif /* Anonymous unions support starts with gcc 2.96/g++ 2.95 */