diff --git a/include/QF/pr_type.h b/include/QF/pr_type.h index 80f90b309..b2ea05060 100644 --- a/include/QF/pr_type.h +++ b/include/QF/pr_type.h @@ -40,6 +40,16 @@ #include "QF/pr_comp.h" +typedef enum { + ty_basic, ///< VM type (float, int, pointer, field, etc) + ty_struct, + ty_union, + ty_enum, + ty_array, + ty_class, + ty_alias, +} ty_meta_e; + typedef struct qfot_alias_s { pr_int_t type; ///< type at end of alias chain pointer_t aux_type; ///< referenced type diff --git a/tools/qfcc/include/type.h b/tools/qfcc/include/type.h index 34afd4449..784ed6f9a 100644 --- a/tools/qfcc/include/type.h +++ b/tools/qfcc/include/type.h @@ -31,7 +31,7 @@ #ifndef __type_h #define __type_h -#include "QF/pr_comp.h" +#include "QF/pr_type.h" #include "def.h" @@ -55,16 +55,6 @@ typedef struct ty_alias_s { struct type_s *type; } ty_alias_t; -typedef enum { - ty_basic, ///< VM type (float, int, pointer, field, etc) - ty_struct, - ty_union, - ty_enum, - ty_array, - ty_class, - ty_alias, -} ty_meta_e; - typedef struct type_s { etype_t type; ///< ev_invalid means structure/array etc const char *name;