diff --git a/libavcodec/arm/asm-offsets.h b/libavcodec/arm/asm-offsets.h
index 43e638d3a59e0a01f5e1905025ec26c80c42ceb5..c7285ac39aafc3552085a27adf1c69d78ef2cdbf 100644
--- a/libavcodec/arm/asm-offsets.h
+++ b/libavcodec/arm/asm-offsets.h
@@ -29,7 +29,7 @@
 #endif
 
 /* MpegEncContext */
-#ifdef __ARM_EABI__
+#if defined(__ARM_EABI__) || defined(__eabi__)
 #define Y_DC_SCALE               0xa54
 #define C_DC_SCALE               0xa58
 #define AC_PRED                  0xa80