diff --git a/quickjs.c b/quickjs.c index 52abc9e..9f5b83c 100644 --- a/quickjs.c +++ b/quickjs.c @@ -209,8 +209,6 @@ typedef enum { JS_GC_PHASE_REMOVE_CYCLES, } JSGCPhaseEnum; -__extension__ typedef enum OPCodeEnum OPCodeEnum; - struct JSRuntime { JSMallocFunctions mf; JSMallocState malloc_state; @@ -990,7 +988,7 @@ typedef enum OPCodeFormat { #undef FMT } OPCodeFormat; -enum OPCodeEnum { +typedef enum OPCodeEnum { #define FMT(f) #define DEF(id, size, n_pop, n_push, f) OP_ ## id, #define def(id, size, n_pop, n_push, f) @@ -1010,7 +1008,7 @@ enum OPCodeEnum { #undef DEF #undef FMT OP_TEMP_END, -}; +} OPCodeEnum; static int JS_InitAtoms(JSRuntime *rt); static JSAtom __JS_NewAtomInit(JSRuntime *rt, const char *str, int len,