diff --git a/libavutil/x86_cpu.h b/libavutil/x86_cpu.h
index d29b7d8ad94a8ebbd7d8da5920b53f8caec5e9a3..08d31461fb2c700ea63aa2af183876c43d87ce05 100644
--- a/libavutil/x86_cpu.h
+++ b/libavutil/x86_cpu.h
@@ -62,6 +62,8 @@ typedef int32_t x86_reg;
 #    define REGc    ecx
 #    define REGd    edx
 #    define REGSP   esp
+#else
+typedef int x86_reg;
 #endif
 
 #define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE))