Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:50

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_PLATFORM_HPP_INCLUDED
0009 #define CATCH_PLATFORM_HPP_INCLUDED
0010 
0011 // See e.g.:
0012 // https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
0013 #ifdef __APPLE__
0014 #  include <TargetConditionals.h>
0015 #  if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
0016       (defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
0017 #    define CATCH_PLATFORM_MAC
0018 #  elif (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE == 1)
0019 #    define CATCH_PLATFORM_IPHONE
0020 #  endif
0021 
0022 #elif defined(linux) || defined(__linux) || defined(__linux__)
0023 #  define CATCH_PLATFORM_LINUX
0024 
0025 #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__)
0026 #  define CATCH_PLATFORM_WINDOWS
0027 
0028 #  if defined( WINAPI_FAMILY ) && ( WINAPI_FAMILY == WINAPI_FAMILY_APP )
0029 #      define CATCH_PLATFORM_WINDOWS_UWP
0030 #  endif
0031 
0032 #elif defined(__ORBIS__) || defined(__PROSPERO__)
0033 #  define CATCH_PLATFORM_PLAYSTATION
0034 
0035 #endif
0036 
0037 #endif // CATCH_PLATFORM_HPP_INCLUDED