aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-09-21 16:42:12 +0200
committerRickard Green <[email protected]>2010-10-29 18:20:09 +0200
commitaf0f99c6f9e59b478e5852336237d56fb8355cca (patch)
tree8229aa3ed5e8277d97033309af2f5105701d87e4
parent3af1a24cb03a5eae1c47efe1dedbef0233e444b0 (diff)
downloadotp-af0f99c6f9e59b478e5852336237d56fb8355cca.tar.gz
otp-af0f99c6f9e59b478e5852336237d56fb8355cca.tar.bz2
otp-af0f99c6f9e59b478e5852336237d56fb8355cca.zip
Allow usage of libatomic_ops when other compilers than gcc are used
-rw-r--r--erts/include/internal/ethread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h
index 4a205699bd..931d692908 100644
--- a/erts/include/internal/ethread.h
+++ b/erts/include/internal/ethread.h
@@ -239,6 +239,8 @@ typedef DWORD ethr_tsd_key;
# include "gcc/ethread.h"
# include "libatomic_ops/ethread.h"
# endif
+# elif defined(ETHR_HAVE_LIBATOMIC_OPS)
+# include "libatomic_ops/ethread.h"
# elif defined(ETHR_WIN32_THREADS)
# include "win/ethread.h"
# endif