From cdd6716214cd0d1513afc85e45abecaa7c5fe6bb Mon Sep 17 00:00:00 2001 From: xinyang <895639507@qq.com> Date: Wed, 31 Jul 2019 14:59:02 +0800 Subject: [PATCH] mac supported --- others/include/systime.h | 2 +- others/src/systime.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/others/include/systime.h b/others/include/systime.h index 195f0b1..6ed04a8 100644 --- a/others/include/systime.h +++ b/others/include/systime.h @@ -12,7 +12,7 @@ typedef struct{ void getsystime(systime &t); -#if defined(Linux) +#if defined(Linux) || defined(Darwin) #include #elif defined(Windows) #include diff --git a/others/src/systime.cpp b/others/src/systime.cpp index 87d3e2e..7a5e4ab 100644 --- a/others/src/systime.cpp +++ b/others/src/systime.cpp @@ -3,7 +3,7 @@ // #include -#if defined(Linux) +#if defined(Linux) || defined(Darwin) void getsystime(systime &t){ timeval tv;