summaryrefslogtreecommitdiff
path: root/spinlock.h
diff options
context:
space:
mode:
authorAlexandre Mestiashvili <alex@biotec.tu-dresden.de>2013-02-19 17:29:57 +0100
committerAlexandre Mestiashvili <alex@biotec.tu-dresden.de>2013-02-19 17:29:57 +0100
commit9c8852ed171277357406985c54c6a339eef2f28d (patch)
tree4dcb7e514b9e2f18478a70c93553edf190bbf94d /spinlock.h
parent2507f33d9874eb98ecc841c9a6e3d0ab1feb1a04 (diff)
Imported Upstream version 2.0.6
Diffstat (limited to 'spinlock.h')
-rw-r--r--spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/spinlock.h b/spinlock.h
index eedf8e0..f621d8b 100644
--- a/spinlock.h
+++ b/spinlock.h
@@ -36,7 +36,7 @@
#if defined(__GNUC__)
#if defined(__x86_64__) || defined(__i386__)
-#ifdef TRY_SPINLOCK
+#ifndef NO_TRY_SPINLOCK
#define USE_SPINLOCK
#endif
#endif
@@ -45,7 +45,7 @@
#ifdef USE_SPINLOCK
#if defined(__x86_64__)
-#define SPINLOCK_WORD long
+#define SPINLOCK_WORD long long
#else
#define SPINLOCK_WORD int
#endif