Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorherringbanger@gmail.com2012-01-14 11:12:58 -0800
committerherringbanger@gmail.com2012-01-14 11:12:58 -0800
commitaa648bd690a14867005a794c94eaa2b35c4cf3ca (patch)
treec35ff32e821704e1b582fa3a6246fc857db1c2e1
parentfd78e0f6df4b5d8774655e41f516e23008990d76 (diff)
downloadcatch3-aa648bd690a14867005a794c94eaa2b35c4cf3ca.tar.gz
Fix linker error in catch_debugger.hpp on iOS on ARM that occurs trying to use assembly for Intel because CATCH_PLATFORM_MAC is defined.
Define CATCH_PLATFORM_MAC using #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) instead of #if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__). Add new CATCH_PLATFORM_IPHONE defined using #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED) for future use. The BreakIntoDebugger and isDebuggerActive functions remain without implementations for iOS.
-rw-r--r--include/internal/catch_debugger.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp
index 9986ecf4..64383b46 100644
--- a/include/internal/catch_debugger.hpp
+++ b/include/internal/catch_debugger.hpp
@@ -16,8 +16,10 @@
#include <iostream>
-#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
+#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
#define CATCH_PLATFORM_MAC
+#elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
+#define CATCH_PLATFORM_IPHONE
#elif defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER)
#define CATCH_PLATFORM_WINDOWS
#endif