1 /* 2 * Created by Phil on 16/8/2013. 3 * Copyright 2013 Two Blue Cubes Ltd. All rights reserved. 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 * 8 */ 9 #ifndef TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED 10 #define TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED 11 12 #ifdef __APPLE__ 13 # include <TargetConditionals.h> 14 # if TARGET_OS_OSX == 1 15 # define CATCH_PLATFORM_MAC 16 # elif TARGET_OS_IPHONE == 1 17 # define CATCH_PLATFORM_IPHONE 18 # endif 19 20 #elif defined(linux) || defined(__linux) || defined(__linux__) 21 # define CATCH_PLATFORM_LINUX 22 23 #elif defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || defined(__MINGW32__) 24 # define CATCH_PLATFORM_WINDOWS 25 #endif 26 27 #endif // TWOBLUECUBES_CATCH_PLATFORM_H_INCLUDED 28