Enable nameless structures in C++ for gcc >= 3.x (discovery and
testing done by Dan Kegel).
This commit is contained in:
parent
5b7f945a73
commit
1f722892d8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue