From: Nicholas Nethercote Date: Sat, 30 Jul 2005 01:22:37 +0000 (+0000) Subject: Use the standard #ifdefs for arch-specific code. X-Git-Tag: svn/VALGRIND_3_0_0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ac510b85e2e714235ab0c88a072af784b18a420;p=thirdparty%2Fvalgrind.git Use the standard #ifdefs for arch-specific code. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4297 --- diff --git a/tests/cputest.c b/tests/cputest.c index ce5319ea07..94c252c1e2 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -21,7 +21,7 @@ char* all_archs[] = { NULL }; -#ifdef __amd64 +#ifdef __x86_64__ static Bool go(char* cpu) { if ( strcmp( cpu, "amd64" ) == 0 ) @@ -29,7 +29,7 @@ static Bool go(char* cpu) else return False; } -#endif // __amd64 +#endif // __x86_64__ #ifdef __powerpc__ static Bool go(char* cpu) @@ -41,7 +41,7 @@ static Bool go(char* cpu) } #endif // __powerpc__ -#ifdef __x86__ +#ifdef __i386__ static void cpuid ( unsigned int n, unsigned int* a, unsigned int* b, unsigned int* c, unsigned int* d ) @@ -90,7 +90,7 @@ static Bool go(char* cpu) } return False; } -#endif // __x86__ +#endif // __i386__ int main(int argc, char **argv)