BSD Porting fixes, conditional compilation and use of gettimeofday()
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#if defined(FC_OS_WIN32)
|
||||
#include <sys/timeb.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Exception.h>
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
@@ -22,7 +22,7 @@ using namespace Wm4;
|
||||
#include <sys/stat.h>
|
||||
|
||||
// support for GetTime
|
||||
#ifdef __APPLE__
|
||||
#if !defined(WIN32)
|
||||
#include <sys/time.h>
|
||||
static timeval gs_kInitial;
|
||||
static bool gs_bInitializedTime = false;
|
||||
@@ -103,7 +103,7 @@ void System::EndianCopy (int iSize, int iQuantity, const void* pvSrc,
|
||||
//----------------------------------------------------------------------------
|
||||
double System::GetTime ()
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
#if !defined(WIN32)
|
||||
if (!gs_bInitializedTime)
|
||||
{
|
||||
gs_bInitializedTime = true;
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#if defined(FC_OS_WIN32)
|
||||
#include <sys/timeb.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Exception.h>
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
Reference in New Issue
Block a user