Ignore:
Timestamp:
Nov 21, 2011, 1:49:47 AM (8 years ago)
Author:
sam
Message:

core: port all code to NativeClient. Nothing runs for now, but it builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/timer.cpp

    r968 r1082  
    1616#include <stdint.h>
    1717
    18 #if defined __linux__ || defined __APPLE__
     18#if defined __linux__ || defined __native_client__ || defined __APPLE__
    1919#   include <sys/time.h>
    2020#   include <unistd.h>
     
    4949    TimerData()
    5050    {
    51 #if defined __linux__ || defined __APPLE__
     51#if defined __linux__ || defined __native_client__ || defined __APPLE__
    5252        gettimeofday(&tv0, NULL);
    5353#elif defined _WIN32
     
    6464    {
    6565        float ret, towait;
    66 #if defined __linux__ || defined __APPLE__
     66#if defined __linux__ || defined __native_client__ || defined __APPLE__
    6767        struct timeval tv;
    6868        gettimeofday(&tv, NULL);
     
    109109    static float GetMsPerCycle()
    110110    {
    111 #if defined __linux__ || defined __APPLE__
     111#if defined __linux__ || defined __native_client__ || defined __APPLE__
    112112        return 1.0f;
    113113#elif defined _WIN32
     
    122122    }
    123123
    124 #if defined __linux__ || defined __APPLE__
     124#if defined __linux__ || defined __native_client__ || defined __APPLE__
    125125    struct timeval tv0;
    126126#elif defined _WIN32
Note: See TracChangeset for help on using the changeset viewer.