esp-idf/components/newlib/platform_include/sys
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
..
dirent.h newlib: add C++ guards to the platform-specific dirent.h 2021-07-08 15:53:58 +02:00
ioctl.h newlib: move dirent.h, ioctl.h headers from VFS 2020-03-20 13:43:42 +01:00
lock.h newlib: add _RETARGETABLE_LOCKING support 2020-12-29 16:18:04 +01:00
poll.h VFS: Implement poll() based on select() 2019-02-25 10:34:27 +01:00
random.h expat: add source of entropy 2018-08-02 11:02:45 +02:00
reent.h Updates for riscv support 2020-11-13 07:49:11 +11:00
select.h newlib: Fix a case in FD_ISSET macro when n==-1 2021-01-06 20:54:24 +00:00
termios.h VFS: Fix Kconfig prefix 2019-07-02 17:17:18 +02:00
time.h newlib: enable timeradd, timersub, and similar macros 2019-03-19 22:15:12 +08:00
uio.h asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
un.h asio: initial idf port of asio library without ssl 2018-07-30 06:28:43 +00:00
unistd.h newlib: remove usage of pre-ANSI defines 2019-03-19 22:15:26 +08:00
utime.h VFS: Implement utime() 2018-11-05 09:54:01 +01:00