1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Directly include <exception> for std::set_terminate (#8978)

I was recently trying to compile this project with a more recent version of GCC and hit an issue with this file. With older versions the std::set_terminate definition was being included via a transitive include of <exception> from the C++ standard library implementation. This is no longer the case with newer versions of libstdc++. This fixes the issue by using a direct include instead of relying on an implementation specific transitive include.
This commit is contained in:
Justin Pinkul 2024-07-25 14:36:16 -06:00 committed by GitHub
parent 7e0d20e2b9
commit e4887b70ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,7 @@
//#define CONT_STACKSIZE 4096
#include <numeric>
#include <exception>
#include <Arduino.h>
#include "Schedule.h"