Skip to content

Commit

Permalink
Don't #define __underscore reserved words/other
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Nov 11, 2024
1 parent f460e01 commit 70741c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/pika/config/include/pika/config/compiler_specific.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,19 @@

// clang-format on
# if !defined(__has_feature)
# define __has_feature(x) 0
# define PIKA_HAS_FEATURE(x) 0
# else
# define PIKA_HAS_FEATURE(x) __has_feature(x)
# endif

# if defined(PIKA_HAVE_SANITIZERS)
# if defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer)
# if defined(__SANITIZE_ADDRESS__) || PIKA_HAS_FEATURE(address_sanitizer)
# define PIKA_HAVE_ADDRESS_SANITIZER
# if defined(PIKA_GCC_VERSION) || defined(PIKA_CLANG_VERSION)
# define PIKA_NO_SANITIZE_ADDRESS __attribute__((no_sanitize("address")))
# endif
# endif
# if defined(__SANITIZE_THREAD__) || __has_feature(thread_sanitizer)
# if defined(__SANITIZE_THREAD__) || PIKA_HAS_FEATURE(thread_sanitizer)
# define PIKA_HAVE_THREAD_SANITIZER
# if defined(PIKA_GCC_VERSION) || defined(PIKA_CLANG_VERSION)
# define PIKA_NO_SANITIZE_THREAD __attribute__((no_sanitize("thread")))
Expand Down

0 comments on commit 70741c0

Please sign in to comment.