*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Jun 2002 22:30:40 +0000
changeset 392 71fe0b713085
parent 391 52f577c8e0b7
child 393 84acd4f134e7
*** empty log message ***
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)