Files
esp-idf/components
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 https://github.com/espressif/newlib-esp32/commit/da418955f5dca2f8570561c5dd6e79e25ebaeba2,
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
..
2021-06-24 13:16:14 +03:00
2021-05-17 03:43:02 +02:00
2021-07-01 19:53:50 +08:00
2021-07-01 19:53:50 +08:00
2021-06-16 09:48:21 +08:00
2021-05-12 17:53:32 +08:00
2021-07-01 19:53:50 +08:00
2021-07-01 19:53:50 +08:00
2021-07-01 19:53:50 +08:00
…
2021-01-06 17:21:53 +05:30
2021-07-01 15:45:05 +02:00
2021-06-19 14:27:44 +08:00
2021-06-29 21:09:27 +08:00