From 9964401199ee378ca3bec95720e9310e5d2a4d8b Mon Sep 17 00:00:00 2001 From: Noah Laptop Date: Sun, 24 May 2020 13:52:07 -0700 Subject: [PATCH] reworked std compatibility per https://github.com/OPEnSLab-OSU/SSLClient/pull/10 --- src/SSLClientParameters.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/SSLClientParameters.cpp b/src/SSLClientParameters.cpp index 1896be3..4ce5969 100644 --- a/src/SSLClientParameters.cpp +++ b/src/SSLClientParameters.cpp @@ -1,11 +1,10 @@ #include "SSLClientParameters.h" // 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*) {} +extern "C"{ + int attribute((weak)) __exidx_start(){ return -1;} + int attribute((weak)) __exidx_end(){ return -1; } } -#endif struct ssl_pem_decode_state { std::vector* vect;