Multiline string literals are deprecated in gcc3.3, fixes build error
This commit is contained in:
10
extern/ode/dist/ode/src/timer.cpp
vendored
10
extern/ode/dist/ode/src/timer.cpp
vendored
@@ -106,9 +106,9 @@ double dTimerTicksPerSecond()
|
|||||||
|
|
||||||
static inline void getClockCount (unsigned long cc[2])
|
static inline void getClockCount (unsigned long cc[2])
|
||||||
{
|
{
|
||||||
asm volatile ("
|
asm volatile ("\n\
|
||||||
rdtsc
|
rdtsc\n\
|
||||||
movl %%eax,(%%esi)
|
movl %%eax,(%%esi)\n\
|
||||||
movl %%edx,4(%%esi)"
|
movl %%edx,4(%%esi)"
|
||||||
: : "S" (cc) : "%eax","%edx","cc","memory");
|
: : "S" (cc) : "%eax","%edx","cc","memory");
|
||||||
}
|
}
|
||||||
@@ -116,8 +116,8 @@ static inline void getClockCount (unsigned long cc[2])
|
|||||||
|
|
||||||
static inline void serialize()
|
static inline void serialize()
|
||||||
{
|
{
|
||||||
asm volatile ("
|
asm volatile ("\n\
|
||||||
mov $0,%%eax
|
mov $0,%%eax\n\
|
||||||
cpuid"
|
cpuid"
|
||||||
: : : "%eax","%ebx","%ecx","%edx","cc","memory");
|
: : : "%eax","%ebx","%ecx","%edx","cc","memory");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user