eolian: enums can't be opaque, check properly

This commit is contained in:
Daniel Kolesa 2015-06-03 12:01:08 +01:00
parent 6190f3cb46
commit 5084938c04
1 changed files with 1 additions and 1 deletions

View File

@ -1930,7 +1930,7 @@ parse_unit(Eo_Lexer *ls, Eina_Bool eot)
}
eo_lexer_context_pop(ls);
pop_strbuf(ls);
if (ls->t.token == ';')
if (!is_enum && ls->t.token == ';')
{
Eolian_Type *def = push_type(ls);
def->is_extern = has_extern;