zephyr/subsys/cpp/include/cstddef
Benjamin Gwin 6dcdbe6447 cpp: Include additional contents in <cstddef>
Similar to <cstdint>, this file should provide the contents of stddef.h
for C++ users.

Signed-off-by: Benjamin Gwin <bgwin@google.com>
2022-06-23 09:12:33 +02:00

26 lines
439 B
Plaintext

/*
* 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;
using ::max_align_t;
using nullptr_t = decltype(nullptr);
}
#endif /* ZEPHYR_SUBSYS_CPP_INCLUDE_CSTDDEF_ */