mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-03 00:21:44 +01:00
newlib: Fix header issues with C++ guards and implicit inclusion
* Added C++ sentinels if missed * Used #pragma once, removed macro's with leading underscores * Updated copyright checker to allow "BSD-2-Clause-FreeBSD AND Apache-2.0" for newlib files * Fixed minor compilation issues/implicit inclusions
This commit is contained in:
@@ -4,14 +4,15 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef _ESP_TIME_H
|
||||
#define _ESP_TIME_H
|
||||
#include <sys/types.h>
|
||||
|
||||
#include_next <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include_next <time.h>
|
||||
|
||||
#define _POSIX_TIMERS 1
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
@@ -28,4 +29,3 @@ int clock_getres(clockid_t clock_id, struct timespec *res);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* _ESP_TIME_H */
|
||||
|
||||
Reference in New Issue
Block a user