File: platform.h

package info (click to toggle)
aws-crt-python 0.20.4%2Bdfsg-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 72,656 kB
  • sloc: ansic: 381,805; python: 23,008; makefile: 6,251; sh: 4,536; cpp: 699; ruby: 208; java: 77; perl: 73; javascript: 46; xml: 11
file content (38 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (3)
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 */