[MPlayer-dev-eng] ppc runtime-cpu-detection fails with gcc 3.3
Jan Paul Schmidt
jps at fundament.org
Fri Feb 24 01:33:25 CET 2006
On Thu, Feb 23, 2006 at 11:44:01PM +0100, Diego Biurrun wrote:
> On Thu, Feb 23, 2006 at 11:33:32AM +0100, Guillaume Poirier wrote:
> >
> > ... so what is the correct way to detect if the compiler is Apple's or
> > not? Assume that darwin=Apple? This doesn't seem correct...
>
> I think Darwin + PPC has a pretty high probability of being Apple..
Maybe this is more precise:
$if gcc --version | grep -q "Apple Computer" ; then echo "yes" ; fi
or
#include <stdio.h>
int main(int argc, char *argv[]) {
#if defined(__APPLE_CC__)
printf("yes\n");
#endif
return 0;
}
jps
More information about the MPlayer-dev-eng
mailing list