1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 18:43:50 +01:00
RIOT/cpu/esp32/include/newlib.h
2025-09-12 11:25:41 +02:00

43 lines
770 B
C

/*
* SPDX-FileCopyrightText: 2022 Gunar Schorcht
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup cpu_esp32
* @{
*
* @file
* @brief Wrapper for sys/features.h
*
* @author Gunar Schorcht <gunar@schorcht.net>
*
* This file is just a wrapper for `newlib.h` to define `_NANO_FORMATTED_IO`
* correctly if the `newlib_nano` module is used. In difference to other
* toolchains, ESP32x toolchains don't use different `newlib.h` versions.
*/
#include "kernel_defines.h"
#ifndef DOXYGEN
#if IS_USED(MODULE_NEWLIB_NANO)
/* newlib nano formatted io is used */
#define _NANO_FORMATTED_IO 1
#endif
#include_next <newlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* DOXYGEN */
/** @} */