Merge pull request #356 from ggtakec/master

Fixed codes about clock_gettime for osx(2)
This commit is contained in:
Takeshi Nakatani 2016-02-07 17:14:32 +09:00
commit cd04cb0875

View File

@ -46,8 +46,11 @@ using namespace std;
//-------------------------------------------------------------------
// Utility
//-------------------------------------------------------------------
#if defined(CLOCK_MONOTONIC_COARSE)
#define CLOCK_MONOTONIC_COARSE 6
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef CLOCK_MONOTONIC_COARSE
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#endif
#ifndef HAVE_CLOCK_GETTIME