Support x32
authorAaron M. Ucko <ucko@debian.org>
Thu, 2 Dec 2021 02:37:42 +0000 (21:37 -0500)
committerAaron M. Ucko <ucko@debian.org>
Tue, 5 Sep 2023 02:40:42 +0000 (22:40 -0400)
Avoid picking up wrong inline assembly.

Gbp-Pq: Name support_x32

c++/include/corelib/impl/ncbi_atomic_defs.h

index eb4721a2252104f530fa1fad241aa253abe0e81e..0de43b73800f855826c4e88f79aa42bdfffd3fc2 100644 (file)
@@ -120,7 +120,7 @@ extern "C" {
   (defined(__i386)  ||  defined(__sparc)  ||  defined(__x86_64)  || \
    defined(__aarch64__))  && \
   (!defined(__GLIBCXX__)  ||  !defined(NCBI_TCHECK))
-#  if defined(__x86_64)  ||  defined(__aarch64__)
+#  if (defined(__x86_64)  &&  !defined(_ILP32))  ||  defined(__aarch64__)
 #    define NCBI_COUNTER_64_BIT
 #  endif
 #  ifdef NCBI_COUNTER_64_BIT