Don't expose C++11 APIs unless we're building for that platform Signed-off-by: Andy Ross <andyross@google.com> squashme cdecl
27 lines
473 B
Text
27 lines
473 B
Text
/*
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* @brief Stub header allowing compilation of `#include <cstddef>`
|
|
*/
|
|
|
|
#ifndef ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDDEF_
|
|
#define ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDDEF_
|
|
|
|
#include <stddef.h>
|
|
|
|
namespace std {
|
|
using ::ptrdiff_t;
|
|
using ::size_t;
|
|
#if __cplusplus >= 201103L
|
|
using ::max_align_t;
|
|
using nullptr_t = decltype(nullptr);
|
|
#endif
|
|
}
|
|
|
|
#endif /* ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDDEF_ */
|