# HG changeset patch # User michael # Date 1216081292 0 # Node ID dcf62171257b423d23d7d52798dceda19b75374e # Parent 4be2b34aa43171f3fb6afbbab2ea8c27265e46af Remove -std=gnu99/gnu89/default dialect linux define, as it violates the C standard. diff -r 4be2b34aa431 -r dcf62171257b stream/vcd_read.h --- a/stream/vcd_read.h Mon Jul 14 16:38:58 2008 +0000 +++ b/stream/vcd_read.h Tue Jul 15 00:21:32 2008 +0000 @@ -9,11 +9,11 @@ #include "stream.h" #include "libavutil/intreadwrite.h" //=================== VideoCD ========================== -#if defined(linux) || defined(sun) || defined(__bsdi__) +#if defined(__linux__) || defined(sun) || defined(__bsdi__) typedef struct mp_vcd_priv_st mp_vcd_priv_t; -#if defined(linux) +#if defined(__linux__) #include #elif defined(sun) #include @@ -128,7 +128,7 @@ } static int vcd_read(mp_vcd_priv_t* vcd,char *mem){ -#if defined(linux) || defined(__bsdi__) +#if defined(__linux__) || defined(__bsdi__) memcpy(vcd->buf,&vcd->entry.cdte_addr.msf,sizeof(struct cdrom_msf)); if(ioctl(vcd->fd,CDROMREADRAW,vcd->buf)==-1) return 0; // EOF? memcpy(mem,&vcd->buf[VCD_SECTOR_OFFS],VCD_SECTOR_DATA); @@ -225,7 +225,7 @@ } #endif /*sun*/ -#else /* linux || sun || __bsdi__ */ +#else /* __linux__ || sun || __bsdi__ */ #error vcd is not yet supported on this arch... diff -r 4be2b34aa431 -r dcf62171257b vidix/mtrr.c --- a/vidix/mtrr.c Mon Jul 14 16:38:58 2008 +0000 +++ b/vidix/mtrr.c Tue Jul 15 00:21:32 2008 +0000 @@ -39,7 +39,7 @@ int mtrr_set_type(unsigned base,unsigned size,int type) { -#ifdef linux +#ifdef __linux__ FILE * mtrr_fd; char * stype; switch(type) diff -r 4be2b34aa431 -r dcf62171257b vidix/pci.c --- a/vidix/pci.c Mon Jul 14 16:38:58 2008 +0000 +++ b/vidix/pci.c Tue Jul 15 00:21:32 2008 +0000 @@ -61,7 +61,7 @@ #endif #include "AsmMacros.h" /* OS depended stuff */ -#if defined (linux) +#if defined (__linux__) #include "sysdep/pci_linux.c" #elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__) #include "sysdep/pci_freebsd.c" diff -r 4be2b34aa431 -r dcf62171257b vidix/sysdep/AsmMacros_alpha.h --- a/vidix/sysdep/AsmMacros_alpha.h Mon Jul 14 16:38:58 2008 +0000 +++ b/vidix/sysdep/AsmMacros_alpha.h Tue Jul 15 00:21:32 2008 +0000 @@ -62,7 +62,7 @@ #ifndef MPLAYER_ASMMACROS_ALPHA_H #define MPLAYER_ASMMACROS_ALPHA_H -#if defined (linux) +#if defined (__linux__) #include #elif defined (__FreeBSD__) #include diff -r 4be2b34aa431 -r dcf62171257b vidix/sysdep/AsmMacros_ia64.h --- a/vidix/sysdep/AsmMacros_ia64.h Mon Jul 14 16:38:58 2008 +0000 +++ b/vidix/sysdep/AsmMacros_ia64.h Tue Jul 15 00:21:32 2008 +0000 @@ -62,7 +62,7 @@ #ifndef MPLAYER_ASMMACROS_IA64_H #define MPLAYER_ASMMACROS_IA64_H -#if defined(linux) +#if defined(__linux__) #include #else #error This stuff is not ported on your system