*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Jun 2002 22:30:40 +0000
changeset 39271fe0b713085
parent 391 52f577c8e0b7
child 393 84acd4f134e7
*** empty log message ***
src/timer/linux/SDL_systimer.c
     1.1 --- a/src/timer/linux/SDL_systimer.c	Sat Jun 01 23:07:22 2002 +0000
     1.2 +++ b/src/timer/linux/SDL_systimer.c	Tue Jun 04 22:30:40 2002 +0000
     1.3 @@ -73,9 +73,9 @@
     1.4  /* This is for old binutils version that don't recognize rdtsc mnemonics.
     1.5     But all binutils version supports this.
     1.6  */
     1.7 -#define rdtsc(t) asm(".byte 0x0f, 0x31; " : "=A" (t));   
     1.8 +#define rdtsc(t) asm __volatile__ (".byte 0x0f, 0x31; " : "=A" (t))
     1.9  #else
    1.10 -#define rdtsc(t) asm("rdtsc" : "=A" (t));
    1.11 +#define rdtsc(t) asm __volatile__ ("rdtsc" : "=A" (t))
    1.12  #endif
    1.13  
    1.14  static float calc_cpu_mhz(void)