[x264-devel] commit: Use #ifdef instead of #if in checkasm (David Conrad )

git version control git at videolan.org
Mon Feb 15 10:07:48 CET 2010


x264 | branch: master | David Conrad <lessen42 at gmail.com> | Sat Feb 13 01:25:56 2010 -0800| [40dce15a622a82e6cce0e7233aa75831162635b1] | committer: Jason Garrett-Glaser 

Use #ifdef instead of #if in checkasm

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=40dce15a622a82e6cce0e7233aa75831162635b1
---

 tools/checkasm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/checkasm.c b/tools/checkasm.c
index 0bedc5b..595bd9e 100644
--- a/tools/checkasm.c
+++ b/tools/checkasm.c
@@ -1662,13 +1662,13 @@ static int check_all_flags( void )
         cpu1 &= ~X264_CPU_CACHELINE_64;
         ret |= add_flags( &cpu0, &cpu1, X264_CPU_SSE4, "SSE4" );
     }
-#elif ARCH_PPC
+#elif defined(ARCH_PPC)
     if( x264_cpu_detect() & X264_CPU_ALTIVEC )
     {
         fprintf( stderr, "x264: ALTIVEC against C\n" );
         ret = check_all_funcs( 0, X264_CPU_ALTIVEC );
     }
-#elif ARCH_ARM
+#elif defined(ARCH_ARM)
     if( x264_cpu_detect() & X264_CPU_ARMV6 )
         ret |= add_flags( &cpu0, &cpu1, X264_CPU_ARMV6, "ARMv6" );
     if( x264_cpu_detect() & X264_CPU_NEON )



More information about the x264-devel mailing list