summaryrefslogtreecommitdiffstats
path: root/include/astra/Globals.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-02-25 16:37:36 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-02-25 16:37:36 +0100
commit214a5429db07e3e18af5856e164f850fbabca427 (patch)
treeb9c72b87a1ad931c11153462206afb0464c85d12 /include/astra/Globals.h
parentf619aba4543de6b9a4fe6fb63b6f1840ef509846 (diff)
parent9a60acfc18e72b8aacdc7388617443e9854f4d3b (diff)
downloadastra-214a5429db07e3e18af5856e164f850fbabca427.tar.gz
astra-214a5429db07e3e18af5856e164f850fbabca427.tar.bz2
astra-214a5429db07e3e18af5856e164f850fbabca427.tar.xz
astra-214a5429db07e3e18af5856e164f850fbabca427.zip
Merge pull request #19 from wjp/osx-support
Improve support for OS X
Diffstat (limited to 'include/astra/Globals.h')
-rw-r--r--include/astra/Globals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/astra/Globals.h b/include/astra/Globals.h
index fdeaa23..9c8ddfb 100644
--- a/include/astra/Globals.h
+++ b/include/astra/Globals.h
@@ -306,4 +306,11 @@ _AstraExport inline bool cudaEnabled() { return false; }
#endif
+//----------------------------------------------------------------------------------------
+// use pthreads on Linux and OSX
+#if defined(__linux__) || defined(__MACH__)
+#define USE_PTHREADS
+#endif
+
+
#endif