OSDN Git Service

Logger/Logger.h: __linux__ changed to __unix__ to support build on cygwin
authorPawel Jewstafjew (w) <Pawel.Jewstafjew@gmail.com>
Mon, 26 Nov 2018 09:51:30 +0000 (09:51 +0000)
committerPawel Jewstafjew (w) <Pawel.Jewstafjew@gmail.com>
Mon, 26 Nov 2018 09:51:30 +0000 (09:51 +0000)
Logger/Logger.h

index 0e1c6df..52bc4c6 100644 (file)
@@ -89,14 +89,14 @@ public:
 
    // print time stamp + EOL + flush
    virtual void timestamp() {
-#ifndef __linux__
+#ifndef __unix__
       struct __timeb64 now;
       _ftime64(&now);
 #else
       struct timeb now;
       ftime(&now);
 #endif
-#ifndef __linux__
+#ifndef __unix__
       char * timeline = _ctime64(&(now.time));
 #else
       char timeline[30];
@@ -109,7 +109,7 @@ public:
 
    // print "quick" time stamp
    virtual void quick_timestamp() {
-#ifndef __linux__
+#ifndef __unix__
       struct __timeb64 now;
       _ftime64(&now);
 #else