From e4dbbf31ffa3197657293736a1be38e37acd54e2 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Tue, 5 Mar 2024 13:52:45 -0600 Subject: [PATCH] fix: Duplicate `std::nothrow` for avr-gcc --- src/new_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/new_handler.cpp b/src/new_handler.cpp index 29615985..fb60e383 100644 --- a/src/new_handler.cpp +++ b/src/new_handler.cpp @@ -19,7 +19,9 @@ #include "new" -const std::nothrow_t std::nothrow = { }; +#ifndef __AVR_ARCH__ + const std::nothrow_t std::nothrow = { }; +#endif //Name selected to be compatable with g++ code std::new_handler __new_handler;