]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGAtomic.hxx
Make tsync part of libSimGearCore when building shared libraries
[simgear.git] / simgear / structure / SGAtomic.hxx
index 91bb262e280c88751bc1c1b07553278af9d0e98c..493c8d25e9b11f0f760a5bcd30eb10c6120ef906 100644 (file)
@@ -35,6 +35,7 @@
 #else
 // The sledge hammer ...
 # define SGATOMIC_USE_LIBRARY_FUNCTIONS
+# define SGATOMIC_USE_MUTEX
 # include <simgear/threads/SGThread.hxx>
 #endif
 
@@ -109,9 +110,7 @@ private:
   SGAtomic(const SGAtomic&);
   SGAtomic& operator=(const SGAtomic&);
 
-#if !defined(SGATOMIC_USE_GCC4_BUILTINS) \
-  && !defined(SGATOMIC_USE_MIPOSPRO_BUILTINS) \
-  && !defined(SGATOMIC_USE_WIN32_INTERLOCKED)
+#if defined(SGATOMIC_USE_MUTEX)
   mutable SGMutex mMutex;
 #endif
   unsigned mValue;