diff --git a/libavutil/internal.h b/libavutil/internal.h
index d98ea7898ca50e4f7b4e342264d375188860e652..80d3d4114c440afd6382690d582260d78ddfef32 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -127,12 +127,10 @@
 #    else
 #        define MANGLE(a) "_" #a
 #    endif
-#else
-#    if defined(ARCH_X86_64) && defined(PIC)
+#elif defined(ARCH_X86_64) && defined(PIC)
 #        define MANGLE(a) #a"(%%rip)"
-#    else
+#else
 #        define MANGLE(a) #a
-#    endif
 #endif
 
 /* debug stuff */