File indexing completed on 2025-09-18 09:08:51
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef CATCH_PLATFORM_HPP_INCLUDED
0009 #define CATCH_PLATFORM_HPP_INCLUDED
0010
0011
0012
0013 #ifdef __APPLE__
0014 # ifndef __has_extension
0015 # define __has_extension(x) 0
0016 # endif
0017 # include <TargetConditionals.h>
0018 # if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
0019 (defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
0020 # define CATCH_PLATFORM_MAC
0021 # elif (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE == 1)
0022 # define CATCH_PLATFORM_IPHONE
0023 # endif
0024
0025 #elif defined(linux) || defined(__linux) || defined(__linux__)
0026 # define CATCH_PLATFORM_LINUX
0027
0028 #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__)
0029 # define CATCH_PLATFORM_WINDOWS
0030
0031 # if defined( WINAPI_FAMILY ) && ( WINAPI_FAMILY == WINAPI_FAMILY_APP )
0032 # define CATCH_PLATFORM_WINDOWS_UWP
0033 # endif
0034
0035 #elif defined(__ORBIS__) || defined(__PROSPERO__)
0036 # define CATCH_PLATFORM_PLAYSTATION
0037
0038 #endif
0039
0040 #endif