Conditionally compile ELF-specific ARM assembly bits that fail on Windows CE.
authorMartin Storsjö <martin@martin.st>
Mon, 27 Jul 2009 12:53:44 +0000 (12:53 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 27 Jul 2009 12:53:44 +0000 (12:53 +0000)
patch by Martin Storsjö, martin martin st

Originally committed as revision 19514 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/arm/asm.S

index 087b279..e2a86c8 100644 (file)
 #include "config.h"
 
         .macro require8, val=1
+#ifdef __ELF__
         .eabi_attribute 24, \val
+#endif
         .endm
 
         .macro preserve8, val=1
+#ifdef __ELF__
         .eabi_attribute 25, \val
+#endif
         .endm
 
         .macro function name, export=0
 .if \export
         .global \name
 .endif
+#ifdef __ELF__
         .type   \name, %function
+#endif
         .func   \name
 \name:
         .endm