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:
parent
7e0d20e2b9
commit
e4887b70ec
@ -24,6 +24,7 @@
|
|||||||
//#define CONT_STACKSIZE 4096
|
//#define CONT_STACKSIZE 4096
|
||||||
|
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "Schedule.h"
|
#include "Schedule.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user