Teensy 4.1 core updated for C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
562B

  1. /* Header to define new/delete operators as they aren't provided by avr-gcc by default
  2. Taken from http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=59453
  3. */
  4. #ifndef NEW_H
  5. #define NEW_H
  6. #include <stdlib.h>
  7. void * operator new(size_t size);
  8. void operator delete(void * ptr);
  9. __extension__ typedef int __guard __attribute__((mode (__DI__)));
  10. extern "C" int __cxa_guard_acquire(__guard *);
  11. extern "C" void __cxa_guard_release (__guard *);
  12. extern "C" void __cxa_guard_abort (__guard *);
  13. extern "C" void __cxa_pure_virtual(void);
  14. #endif