diff options
author | ACSYS <cvc4-devel@cs.nyu.edu> | 2010-09-27 22:26:46 +0000 |
---|---|---|
committer | ACSYS <cvc4-devel@cs.nyu.edu> | 2010-09-27 22:26:46 +0000 |
commit | 753a072c542c1c254d7c6adbf10e091ba585ede5 (patch) | |
tree | 5ab9157fe0d3f265f82a94f7f4e5940697b54ee5 /src/util/Assert.cpp | |
parent | 595751a1814cc9375318c9c158caf6426eeda791 (diff) |
add workaround for systems (i.e., Mac OS X) that don't support __thread; also configure script auto-detection of __thread support and syntax
Diffstat (limited to 'src/util/Assert.cpp')
-rw-r--r-- | src/util/Assert.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/Assert.cpp b/src/util/Assert.cpp index 7856b3da4..01c40aca2 100644 --- a/src/util/Assert.cpp +++ b/src/util/Assert.cpp @@ -22,13 +22,14 @@ #include "util/Assert.h" #include "util/exception.h" +#include "util/tls.h" using namespace std; namespace CVC4 { #ifdef CVC4_DEBUG -__thread CVC4_PUBLIC const char* s_debugLastException = NULL; +CVC4_PUBLIC CVC4_THREADLOCAL(const char*) s_debugLastException = NULL; #endif /* CVC4_DEBUG */ void AssertionException::construct(const char* header, const char* extra, |