Browse Source

Use '#if defined()' for OS-specific preprocessor checks.

Avoids some warnings about undefined preprocessor directives.

Originally committed as revision 16869 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 17 years ago
parent
commit
67a7e4dbcf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/ppc/check_altivec.c

+ 2
- 2
libavcodec/ppc/check_altivec.c View File

@@ -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>


Loading…
Cancel
Save