diff options
author | David Robillard <d@drobilla.net> | 2016-10-01 19:50:38 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-01 19:50:38 -0400 |
commit | c73c877f8bd09e0d5a6663ea5ba32a54465f5376 (patch) | |
tree | 185f2da0e58e1c2ab75c4d9db851cf6fc7ca90ee /src/server/util.hpp | |
parent | 604015aa65de7d84f177b53e578a8c9852d7893f (diff) | |
download | ingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.tar.gz ingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.tar.bz2 ingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.zip |
Fix OSX build
Diffstat (limited to 'src/server/util.hpp')
-rw-r--r-- | src/server/util.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/util.hpp b/src/server/util.hpp index d6377a9e..7d30cc8f 100644 --- a/src/server/util.hpp +++ b/src/server/util.hpp @@ -35,6 +35,14 @@ # define REALTIME #endif +#if defined(INGEN_HAVE_THREAD_LOCAL) +# define INGEN_THREAD_LOCAL thread_local +#elif defined(INGEN_HAVE_THREAD_BUILTIN) +# define INGEN_THREAD_LOCAL __thread +#else +# define INGEN_THREAD_LOCAL +#endif + namespace Ingen { namespace Server { |