-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
I was trying to compile an Arduino app on Teensy 4.0. With Teensy 3.X I've been using ustd by defining __ATMEGA__
and it worked OK.
As far as I can tell, Teensy 4.0 uses an updated Arduino Core that no longer exposes <new.h>
See: https://github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/new.h for example, that suggests that core moved away from using this file. I guess the Teensy 4 doesn't even bother to try to offer this stub.
As a result, the compile fails with:
In file included from .platformio/lib/ustd/ustd_array.h:31:0,
.platformio/lib/ustd/ustd_platform.h:113:51: fatal error: new.h: No such file or directory
But it does work when I change it to:
#include <new>
Would that be an appropriate update to https://github.com/muwerk/ustd/blob/master/ustd_platform.h#L113 ? Or possibly to expose a new platform #define that controls the behavior?
Metadata
Metadata
Assignees
Labels
No labels