esp-idf/components/newlib/platform_include
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
..
net newlib: using lwip implementation of interface name/index conversion 2020-01-09 21:53:50 +01:00
sys newlib: add C++ guards to the platform-specific dirent.h 2021-07-08 15:53:58 +02:00
assert.h hal: added HAL_ASSERT 2021-06-22 11:28:01 +08:00
endian.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
errno.h asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
esp_newlib.h newlib: Update esp32c3 ROM support, use single init function 2020-12-31 09:27:37 +11:00
pthread.h global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
time.h Updates for riscv support 2020-11-13 07:49:11 +11:00