changeset 392:71fe0b713085

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jun 2002 22:30:40 +0000
parents 52f577c8e0b7
children 84acd4f134e7
files src/timer/linux/SDL_systimer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)