From Frank Lichtenheld, compile fix to Linux powerpc build.
This commit is contained in:
@@ -138,7 +138,7 @@ class SG_EXPORT Timer {
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef __ia64
|
||||
#if defined(__ia64) || defined(__x86_64__) || defined(__powerpc)
|
||||
#define CLK(x) ((x)=0)
|
||||
#else
|
||||
#define CLK(x) __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x))
|
||||
|
||||
@@ -160,7 +160,7 @@ const Timer* Timer::instance()
|
||||
|
||||
Timer::Timer()
|
||||
{
|
||||
#if defined(__ia64) || defined(__x86_64__)
|
||||
#if defined(__ia64) || defined(__x86_64__) || defined(__powerpc)
|
||||
_useStandardClock = true;
|
||||
#else
|
||||
_useStandardClock = true;
|
||||
|
||||
Reference in New Issue
Block a user