mac supported
This commit is contained in:
1 parent
5212e0da73
commit
cdd6716214
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@ typedef struct{
|
|||||||
|
|
||||||
void getsystime(systime &t);
|
void getsystime(systime &t);
|
||||||
|
|
||||||
#if defined(Linux)
|
#if defined(Linux) || defined(Darwin)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#elif defined(Windows)
|
#elif defined(Windows)
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
#include <systime.h>
|
#include <systime.h>
|
||||||
|
|
||||||
#if defined(Linux)
|
#if defined(Linux) || defined(Darwin)
|
||||||
|
|
||||||
void getsystime(systime &t){
|
void getsystime(systime &t){
|
||||||
timeval tv;
|
timeval tv;
|
||||||
|
|||||||
Reference in new issue
Block a user