* gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.

This commit is contained in:
Daniel Jacobowitz 2010-03-15 02:42:54 +00:00
parent d43d0b53f6
commit 3c13bc11c3
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
* gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
* charset.c [USE_WIN32API]: Include <windows.h>.

View file

@ -1045,7 +1045,8 @@ extern void allocate_gnat_aux_type (struct type *);
#define TYPE_IS_OPAQUE(thistype) (((TYPE_CODE (thistype) == TYPE_CODE_STRUCT) || \
(TYPE_CODE (thistype) == TYPE_CODE_UNION)) && \
(TYPE_NFIELDS (thistype) == 0) && \
(HAVE_CPLUS_STRUCT (thistype) && (TYPE_NFN_FIELDS (thistype) == 0)) && \
(!HAVE_CPLUS_STRUCT (thistype) \
|| TYPE_NFN_FIELDS (thistype) == 0) && \
(TYPE_STUB (thistype) || !TYPE_STUB_SUPPORTED (thistype)))
struct builtin_type