2013-08-16 20:08:39 +02:00
|
|
|
/*
|
|
|
|
* Created by Phil on 16/8/2013.
|
|
|
|
* Copyright 2013 Two Blue Cubes Ltd. All rights reserved.
|
|
|
|
*
|
|
|
|
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#ifndef TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED
|
|
|
|
#define TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED
|
|
|
|
|
2021-01-20 21:12:18 +01:00
|
|
|
// See e.g.:
|
|
|
|
// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html
|
2017-07-12 15:52:36 +02:00
|
|
|
#ifdef __APPLE__
|
2021-01-20 21:12:18 +01:00
|
|
|
# include <TargetConditionals.h>
|
|
|
|
# if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \
|
|
|
|
(defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1)
|
|
|
|
# define CATCH_PLATFORM_MAC
|
|
|
|
# elif (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE == 1)
|
|
|
|
# define CATCH_PLATFORM_IPHONE
|
|
|
|
# endif
|
2017-07-12 15:52:36 +02:00
|
|
|
|
2016-02-05 14:56:20 +01:00
|
|
|
#elif defined(linux) || defined(__linux) || defined(__linux__)
|
2017-01-16 17:00:43 +01:00
|
|
|
# define CATCH_PLATFORM_LINUX
|
2017-07-12 15:52:36 +02:00
|
|
|
|
2018-04-22 18:46:54 +02:00
|
|
|
#elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__)
|
2016-12-16 14:46:26 +01:00
|
|
|
# define CATCH_PLATFORM_WINDOWS
|
2013-08-16 20:08:39 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED
|