Search found 3 matches

by zimage
Sun Feb 22, 2009 8:12 am
Forum: devkitPPC
Topic: could powerpc-gekko-cpp define GEKKO by default?
Replies: 3
Views: 5278

Re: could powerpc-gekko-cpp define GEKKO by default?

I just looked at the patch to gcc and noticed that "__wii__" is defined when you use "cpp -mrvl". This is exactly what I'm looking for.
by zimage
Sun Feb 22, 2009 7:34 am
Forum: devkitPPC
Topic: could powerpc-gekko-cpp define GEKKO by default?
Replies: 3
Views: 5278

Re: could powerpc-gekko-cpp define GEKKO by default?

When compilling for Wii, the define "GEKKO" will be used. It's passed directly to the compiler (-DGEKKO) when running make. See Wii make rules files : "path to your devkitPPC"/wii_rules Yes, I know that. Software that has been written for platforms other than the wii doesn't include $DEVKITPPC/wii ...
by zimage
Sun Feb 22, 2009 6:09 am
Forum: devkitPPC
Topic: could powerpc-gekko-cpp define GEKKO by default?
Replies: 3
Views: 5278

could powerpc-gekko-cpp define GEKKO by default?

When I run cpp on a linux system, __linux, __linux__, and linux are all defined automatically $ touch /tmp/foo.c && cpp -E -dM /tmp/foo.c | grep linux #define __linux 1 #define __linux__ 1 #define __gnu_linux__ 1 #define linux 1 On my mac they define __APPLE__ $ touch /tmp/foo.c && cpp -E -dM /tmp ...