From e01dea47ce2f7b6e6b0b77198ff105f51467c3e6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 4 Jun 2002 22:30:40 +0000 Subject: [PATCH] *** empty log message *** --- src/timer/linux/SDL_systimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timer/linux/SDL_systimer.c b/src/timer/linux/SDL_systimer.c index eefaf98fb..131eeae0e 100644 --- a/src/timer/linux/SDL_systimer.c +++ b/src/timer/linux/SDL_systimer.c @@ -73,9 +73,9 @@ static float cpu_mhz1000 = 0.0f; /* 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)