summaryrefslogtreecommitdiffstats
path: root/src/misc/util/abc_global.h
diff options
context:
space:
mode:
authorAaron Tomb <atomb@galois.com>2013-11-04 14:25:55 -0800
committerAaron Tomb <atomb@galois.com>2013-11-04 14:25:55 -0800
commitcf1746e3480a3260bd80a4fa9754369a4bb6bc6b (patch)
tree8db655c8999d15e3336919b5599be8ab8b24aff9 /src/misc/util/abc_global.h
parenta0529ec5c80482253d451b90c00b6c22d664dfb2 (diff)
downloadabc-cf1746e3480a3260bd80a4fa9754369a4bb6bc6b.tar.gz
abc-cf1746e3480a3260bd80a4fa9754369a4bb6bc6b.tar.bz2
abc-cf1746e3480a3260bd80a4fa9754369a4bb6bc6b.zip
Make definition of Abc_Clock work with MINGW32.
Diffstat (limited to 'src/misc/util/abc_global.h')
-rw-r--r--src/misc/util/abc_global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h
index 950a8889..5a0a1f1d 100644
--- a/src/misc/util/abc_global.h
+++ b/src/misc/util/abc_global.h
@@ -272,7 +272,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__)
+#if (defined(LIN) || defined(LIN64) && !(__APPLE__ & __MACH__)) && !defined(__MINGW32__)
struct timespec ts;
if ( clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) < 0 )
return (abctime)-1;