changeset 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 24a7b5d0eb27
children ebb66d91b011
files ppc/check_altivec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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>