1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#ifndef AWS_COMMON_PLATFORM_H
#define AWS_COMMON_PLATFORM_H
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/common/config.h>
#ifdef _WIN32
# define AWS_OS_WINDOWS
/* indicate whether this is for Windows desktop, or UWP or Windows S, or other Windows-like devices */
# if defined(AWS_HAVE_WINAPI_DESKTOP)
# define AWS_OS_WINDOWS_DESKTOP
# endif
#elif __APPLE__
# define AWS_OS_APPLE
# include "TargetConditionals.h"
# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
# define AWS_OS_IOS
# elif defined(TARGET_OS_WATCH) && TARGET_OS_WATCH
# define AWS_OS_WATCHOS
# elif defined(TARGET_OS_TV) && TARGET_OS_TV
# define AWS_OS_TVOS
# else
# define AWS_OS_MACOS
# endif
#elif __linux__
# define AWS_OS_LINUX
#endif
#if defined(_POSIX_VERSION)
# define AWS_OS_POSIX
#endif
#endif /* AWS_COMMON_PLATFORM_H */
|