summaryrefslogtreecommitdiff
path: root/atomic/unix/mutex64.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-04-21 12:24:53 +0000
committerYann Ylavic <ylavic@apache.org>2023-04-21 12:24:53 +0000
commit805904fe295efa5f480b067d8c60777675ea7368 (patch)
treeb669398f4ac8c38c5a8355e475ffdcf8269c3123 /atomic/unix/mutex64.c
parent4ab133489c13382e13aea8d34aa0ec404c409f07 (diff)
downloadapr-805904fe295efa5f480b067d8c60777675ea7368.tar.gz
atomics: Disentangle 32bit and 64bit atomics configuration.
Allow for --enable-nonportable-atomics=upto32bit to disable 64bit atomic builtins while still allowing for 32bit ones. yes/no still enables/disables both (if available in the first place..). By default (no --enable-nonportable-atomics setting), generic 64bit atomics are forced for 32bit CPUs/systems, until we figure out how to properly align apr_uint64_t (at least i[56]86 CPUs which could work with 64bit builtins actually don't if the data is not 64bit aligned, assuming the same for other 32bit CPUs is safer). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1909321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic/unix/mutex64.c')
-rw-r--r--atomic/unix/mutex64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atomic/unix/mutex64.c b/atomic/unix/mutex64.c
index a6a7ceb0b..4ea4d8fc8 100644
--- a/atomic/unix/mutex64.c
+++ b/atomic/unix/mutex64.c
@@ -17,7 +17,7 @@
#include "apr_arch_atomic.h"
#include "apr_thread_mutex.h"
-#if defined(USE_ATOMICS_GENERIC) || defined (NEED_ATOMICS_GENERIC64)
+#if defined(USE_ATOMICS_GENERIC64)
#include <stdlib.h>