summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/sys/Thread.h
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
committerTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
commiteca0963bf440a08ed4ee7abc2ea66cc50fa01f43 (patch)
tree2a530f3a690e6bafca5819ee90fe2b4427e603a4 /cpp/include/qpid/sys/Thread.h
parent111effbd4a988a0fc96d00034f4662ba6c7ebb9f (diff)
downloadqpid-python-eca0963bf440a08ed4ee7abc2ea66cc50fa01f43.tar.gz
QPID-2905 - Code modifications to enable Windows builds with the mingw32 compiler.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1104662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/sys/Thread.h')
-rw-r--r--cpp/include/qpid/sys/Thread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/qpid/sys/Thread.h b/cpp/include/qpid/sys/Thread.h
index 45a39e796f..f556612908 100644
--- a/cpp/include/qpid/sys/Thread.h
+++ b/cpp/include/qpid/sys/Thread.h
@@ -25,7 +25,11 @@
#include "qpid/CommonImportExport.h"
#ifdef _WIN32
-# define QPID_TSS __declspec(thread)
+# ifdef _MSC_VER
+# define QPID_TSS __declspec(thread)
+# else
+# define QPID_TSS __thread
+# endif
#elif defined (__GNUC__)
# define QPID_TSS __thread
#elif defined (__SUNPRO_CC)