From 226307d0bd30cedeb64a3ca59b6217bf9e759dae Mon Sep 17 00:00:00 2001 From: Blair Wyatt Date: Thu, 21 May 2020 18:46:59 +1000 Subject: [PATCH] Add support for Teensy 4.x Teensy 4.x doesn't support exidx calls (yet), this fixes support for Teensy 4.x. --- src/SSLClientParameters.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SSLClientParameters.cpp b/src/SSLClientParameters.cpp index c988a8f..6407533 100644 --- a/src/SSLClientParameters.cpp +++ b/src/SSLClientParameters.cpp @@ -1,7 +1,7 @@ #include "SSLClientParameters.h" -// fix for non-exception arduino platforms -#ifdef ADAFRUIT_FEATHER_M0 +// fix for non-exception arduino platforms (Feather and Teensy 4.0) +#if defined ADAFRUIT_FEATHER_M0 || defined __IMXRT1062__ namespace std { void __throw_length_error(char const*) {} } @@ -91,4 +91,4 @@ SSLClientParameters SSLClientParameters::fromPEM(const char* cert_pem, const siz /* See SSLClientParams.h */ SSLClientParameters SSLClientParameters::fromDER(const char* cert_der, const size_t cert_len, const char* key_der, const size_t key_len) { return SSLClientParameters(cert_der, cert_len, key_der, key_len, true); -} \ No newline at end of file +}