AP_Common: add directory to add missing C/C++ symbols

Add a cstddef header to allow using std::nullptr_t with those toolchains
that don't provide it. The idea is to make these platforms to use our
wrapper header (see https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html)
and then we add the missing bits to the header.
This commit is contained in:
Lucas De Marchi 2016-02-13 16:02:37 -02:00
parent 7fda3ba178
commit e1ae79688d
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#pragma once
#include_next <cstddef>
#if defined(HAVE_NULLPTR_T) && !HAVE_NULLPTR_T
namespace std {
typedef decltype(nullptr) nullptr_t;
}
#endif