diff ppc/check_altivec.c @ 8699:450a1c5bab22 libavcodec

Use '#if defined()' for OS-specific preprocessor checks. Avoids some warnings about undefined preprocessor directives.
author diego
date Fri, 30 Jan 2009 23:50:13 +0000
parents eebc7209c47f
children e9d9d946f213
line wrap: on
line diff
--- a/ppc/check_altivec.c	Fri Jan 30 23:13:19 2009 +0000
+++ b/ppc/check_altivec.c	Fri Jan 30 23:50:13 2009 +0000
@@ -25,11 +25,11 @@
 #ifdef __APPLE__
 #undef _POSIX_C_SOURCE
 #include <sys/sysctl.h>
-#elif __OpenBSD__
+#elif defined(__OpenBSD__)
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <machine/cpu.h>
-#elif __AMIGAOS4__
+#elif defined(__AMIGAOS4__)
 #include <exec/exec.h>
 #include <interfaces/exec.h>
 #include <proto/exec.h>