Use '#if defined()' for OS-specific preprocessor checks.
authorDiego Biurrun <diego@biurrun.de>
Fri, 30 Jan 2009 23:50:13 +0000 (23:50 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 30 Jan 2009 23:50:13 +0000 (23:50 +0000)
Avoids some warnings about undefined preprocessor directives.

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

libavcodec/ppc/check_altivec.c

index 417c768..6e38f9c 100644 (file)
 #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>