From 7b5aff4812ff32d9c6ad6fa82141f66296eb197a Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 26 May 2015 18:07:40 -0400 Subject: [PATCH] Have consumers supply OPENSSL_C11_ATOMIC. Support is spotty enough with compiler/library mismatches, and this doesn't leak to public headers. It's probably simplest to just have consumers supply it as a build flag. BUG=491808 Change-Id: I0576a0514a266ee90d644317ae0f49cdddbafd1d Reviewed-on: https://boringssl-review.googlesource.com/4880 Reviewed-by: Yoshisato Yanagisawa Reviewed-by: Adam Langley --- crypto/internal.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crypto/internal.h b/crypto/internal.h index 8c38279b..59eddd0e 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -356,15 +356,6 @@ OPENSSL_EXPORT void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)); /* Reference counting. */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \ - !defined(__STDC_NO_ATOMICS__) -/* OSX's atomic support is broken: the compiler sets the right macros but - * stdatomic.h is missing. */ -#if !defined(OPENSSL_APPLE) -#define OPENSSL_C11_ATOMIC -#endif -#endif - /* CRYPTO_REFCOUNT_MAX is the value at which the reference count saturates. */ #define CRYPTO_REFCOUNT_MAX 0xffffffff