diff options
author | Rickard Green <rickard@erlang.org> | 2010-12-03 10:57:26 +0100 |
---|---|---|
committer | Rickard Green <rickard@erlang.org> | 2010-12-11 03:03:19 +0100 |
commit | b297bfdd47b0a39831d8cc2541aeb910f9af0bca (patch) | |
tree | 59ac65b0d0bc95879d9507900781acdc4911bc3b /erts/aclocal.m4 | |
parent | 99e34bba1a60b262e24496cc9288b549360c6377 (diff) | |
download | erlang-b297bfdd47b0a39831d8cc2541aeb910f9af0bca.tar.gz |
Introduce ethr_sint_t and use it for atomics
The atomic memory operations interface used the 'long' type and assumed that
it was of the same size as 'void *'. This is true on most platforms, however,
not on Windows 64.
Diffstat (limited to 'erts/aclocal.m4')
-rw-r--r-- | erts/aclocal.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4 index 443d8622bf..d45b36bfed 100644 --- a/erts/aclocal.m4 +++ b/erts/aclocal.m4 @@ -1087,6 +1087,13 @@ fi AC_CHECK_SIZEOF(void *) AC_DEFINE_UNQUOTED(ETHR_SIZEOF_PTR, $ac_cv_sizeof_void_p, [Define to the size of pointers]) +AC_CHECK_SIZEOF(int) +AC_DEFINE_UNQUOTED(ETHR_SIZEOF_INT, $ac_cv_sizeof_int, [Define to the size of int]) +AC_CHECK_SIZEOF(long) +AC_DEFINE_UNQUOTED(ETHR_SIZEOF_LONG, $ac_cv_sizeof_long, [Define to the size of long]) +AC_CHECK_SIZEOF(long long) +AC_DEFINE_UNQUOTED(ETHR_SIZEOF_LONG_LONG, $ac_cv_sizeof_long_long, [Define to the size of long long]) + AC_ARG_ENABLE(native-ethr-impls, AS_HELP_STRING([--disable-native-ethr-impls], [disable native ethread implementations]), |