Skip to content

Commit ea157c6

Browse files
jpinkulhasenradball
authored andcommitted
Directly include <exception> for std::set_terminate (esp8266#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.
1 parent 2c6cdc5 commit ea157c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp8266/core_esp8266_main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//#define CONT_STACKSIZE 4096
2525

2626
#include <numeric>
27+
#include <exception>
2728

2829
#include <Arduino.h>
2930
#include "Schedule.h"

0 commit comments

Comments
 (0)