Skip to content

Commit

Permalink
Directly include <exception> for std::set_terminate (#8978)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jpinkul authored Jul 25, 2024
1 parent 7e0d20e commit e4887b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/esp8266/core_esp8266_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//#define CONT_STACKSIZE 4096

#include <numeric>
#include <exception>

#include <Arduino.h>
#include "Schedule.h"
Expand Down

0 comments on commit e4887b7

Please sign in to comment.