mirror of https://github.com/YosysHQ/abc.git
Fix parenthesization of Abc_Clock #ifdef.
The previous location of parentheses led to an attempt to compile against Linux-only clock APIs when building on 32-bit OS X.
This commit is contained in:
parent
f29fe2d0c2
commit
56378651c7
|
|
@ -274,7 +274,7 @@ static inline int Abc_Lit2LitL( int * pMap, int Lit ) { return Abc_LitNo
|
|||
typedef ABC_INT64_T abctime;
|
||||
static inline abctime Abc_Clock()
|
||||
{
|
||||
#if (defined(LIN) || defined(LIN64) && !(__APPLE__ & __MACH__)) && !defined(__MINGW32__)
|
||||
#if (defined(LIN) || defined(LIN64)) && !(__APPLE__ & __MACH__) && !defined(__MINGW32__)
|
||||
struct timespec ts;
|
||||
if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 )
|
||||
return (abctime)-1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue