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;