Added declaration for placement new because it was not available in Arduino

This commit is contained in:
Benoit Blanchon
2014-11-03 21:29:19 +01:00
parent 43ad37e7ce
commit d9cc259df3
4 changed files with 19 additions and 6 deletions

View File

@ -0,0 +1,15 @@
// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#ifdef ARDUINO
inline void *operator new(size_t, void *p) throw() { return p; }
#else
#include <new>
#endif