diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-20 17:09:21 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-22 10:20:51 +0300 |
commit | 53049621f4d962634a6196d584fca6045722dd94 (patch) | |
tree | 09c31f71136bcf7f7ea1a401012cbf3bea98b95f | |
parent | ad1844dfbb9a429e4aa394686a82ed333988368c (diff) | |
download | libatomic_ops-53049621f4d962634a6196d584fca6045722dd94.tar.gz |
Fix 'use of undeclared SIG_BLOCK' Clang error if -std=c89 on Cygwin
* src/atomic_ops.c [__CYGWIN__ && !AO_USE_NO_SIGNALS && !_GNU_SOURCE]
(_GNU_SOURCE): Define macro.
-rw-r--r-- | src/atomic_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c index a84c9f3..94ee640 100644 --- a/src/atomic_ops.c +++ b/src/atomic_ops.c @@ -45,7 +45,8 @@ # define AO_USE_NO_SIGNALS #endif -#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__)) \ +#if (defined(__CYGWIN__) || defined(__GLIBC__) || defined(__GNU__) \ + || defined(__linux__)) \ && !defined(AO_USE_NO_SIGNALS) && !defined(_GNU_SOURCE) # define _GNU_SOURCE 1 #endif |