]> git.gir.st - tmk_keyboard.git/blob - protocol/usb_hid/arduino-1.0.1/cores/arduino/new.h
Squashed 'tmk_core/' content from commit 05caacc
[tmk_keyboard.git] / protocol / usb_hid / arduino-1.0.1 / cores / arduino / new.h
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
5 #ifndef NEW_H
6 #define NEW_H
7
8 #include <stdlib.h>
9
10 void * operator new(size_t size);
11 void operator delete(void * ptr);
12
13 __extension__ typedef int __guard __attribute__((mode (__DI__)));
14
15 extern "C" int __cxa_guard_acquire(__guard *);
16 extern "C" void __cxa_guard_release (__guard *);
17 extern "C" void __cxa_guard_abort (__guard *);
18
19 extern "C" void __cxa_pure_virtual(void);
20
21 #endif
22
Imprint / Impressum