Enable nameless structures in C++ for gcc >= 3.x (discovery and

testing done by Dan Kegel).
oldstable
Dimitrie O. Paun 2003-01-04 00:17:11 +00:00 committed by Alexandre Julliard
parent 5b7f945a73
commit 1f722892d8
1 changed files with 2 additions and 2 deletions

View File

@ -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 */