Skip to content

Commit

Permalink
refactor config
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 21, 2024
1 parent f3bbdaf commit 06ca237
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions aws-common-runtime/config/aws/common/config.h
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
#ifdef __APPLE__
# include <TargetConditionals.h>
#endif

#ifndef AWS_COMMON_CONFIG_H
# define AWS_COMMON_CONFIG_H
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#ifndef AWS_COMMON_CONFIG_H
#define AWS_COMMON_CONFIG_H
/*
* This header exposes compiler feature test results determined during cmake
* configure time to inline function implementations. The macros defined here
* should be considered to be an implementation detail, and can change at any
* time.
*/
#ifdef __APPLE__
/* This is a trick to skip OpenSSL header on Apple platforms since Swift Package Manager is not smart enough to exclude
* some headers.
*/
# define AWS_C_CAL_OPENSSLCRYPTO_COMMON_H
#endif
#define AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
#define AWS_HAVE_GCC_INLINE_ASM
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR || TARGET_OS_MAC
# define AWS_C_CAL_OPENSSLCRYPTO_COMMON_H
#endif

#define AWS_UNSTABLE_TESTING_API 1
#define AWS_AFFINITY_METHOD 0
#define AWS_HAVE_EXECINFO 1

#endif

0 comments on commit 06ca237

Please sign in to comment.