# HG changeset patch # User Sam Lantinga # Date 1023229840 0 # Node ID 71fe0b713085661b992c2410a632f880a3983a29 # Parent 52f577c8e0b73e354256f85d6dd945e72cb2ae02 *** empty log message *** diff -r 52f577c8e0b7 -r 71fe0b713085 src/timer/linux/SDL_systimer.c --- a/src/timer/linux/SDL_systimer.c Sat Jun 01 23:07:22 2002 +0000 +++ b/src/timer/linux/SDL_systimer.c Tue Jun 04 22:30:40 2002 +0000 @@ -73,9 +73,9 @@ /* This is for old binutils version that don't recognize rdtsc mnemonics. But all binutils version supports this. */ -#define rdtsc(t) asm(".byte 0x0f, 0x31; " : "=A" (t)); +#define rdtsc(t) asm __volatile__ (".byte 0x0f, 0x31; " : "=A" (t)) #else -#define rdtsc(t) asm("rdtsc" : "=A" (t)); +#define rdtsc(t) asm __volatile__ ("rdtsc" : "=A" (t)) #endif static float calc_cpu_mhz(void)