esp-idf/components/newlib
Ivan Grokhotkov cbf207bfb8 newlib: add C++ guards to the platform-specific dirent.h
Before newlib 3.3.0, <dirent.h> bundled in newlib did not include any
function declarations. Instead, the file included the platform-
specific <sys/dirent.h>. This inclusion was inside a C++ guard block.
ESP-IDF provided sys/dirent.h inside newlib component, and this file
contained all the necessary function and structure declarations.

Since da418955f5,
common function declarations have been added to <dirent.h> in newlib.
However, the inclusion of sys/dirent.h has been moved out of the C++
guard block. However we didn't notice this change and did not update
sys/dirent.h in ESP-IDF newlib component to and the now-required
C++ guards there.

This commit adds the missing C++ guards to the platform-specific
sys/dirent.h.

The declarations of common dirent.h functions are now present both in
<dirent.h> (provided by newlib) and in sys/dirent.h (provided by IDF).
We keep the declarations in sys/dirent.h for compatibility, since some
ESP-IDF files and applications may include <sys/dirent.h> directly,
rather than <dirent.h>.

Closes https://github.com/espressif/esp-idf/issues/7204
2021-07-08 15:53:58 +02:00
..
platform_include newlib: add C++ guards to the platform-specific dirent.h 2021-07-08 15:53:58 +02:00
port esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
priv_include Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
test_apps CI: minor testcases fixes and disable some cases that cant run on S3 2021-06-15 13:39:48 +08:00
.gitignore Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
abort.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
CMakeLists.txt esp32: move system libs 2021-03-31 19:17:33 +08:00
component.mk esp32: move system libs 2021-03-31 19:17:33 +08:00
COPYING.NEWLIB Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp32-spiram-rom-functions-c.lf psram: add configuration macros to move workaround libc functions to flash 2021-06-23 17:40:02 +08:00
heap.c tests: re-add all disabled tests and all disabled configurations 2020-10-14 16:11:49 +11:00
Kconfig Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
locks.c esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
Makefile.old Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
newlib_init.c esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
newlib.lf arch: move stdatomic 2021-02-26 18:40:00 +08:00
poll.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
pthread.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
random.c esp32: Add esp_fill_random() function 2018-09-03 04:39:45 +00:00
reent_init.c global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
stdatomic.c newlib: stdatomic: emulate 64-bit atomics on 32-bit SMP SoCs 2021-05-10 18:13:36 +02:00
syscalls.c Updates for riscv support 2020-11-13 07:49:11 +11:00
system_libs.lf esp32: move system libs 2021-03-31 19:17:33 +08:00
termios.c VFS: Fix Kconfig prefix 2019-07-02 17:17:18 +02:00
time.c Updates for riscv support 2020-11-13 07:49:11 +11:00