esp-idf/tools
Ivan Grokhotkov 03109eb013 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-08-03 13:53:34 +08:00
..
ble ble-wifi-example-tests: Add fixes and cleanups to ble and wifi tests 2021-06-01 12:27:04 +05:30
catch Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
ci newlib: add C++ guards to the platform-specific dirent.h 2021-08-03 13:53:34 +08:00
cmake tools: stop building if compiler is unsupported 2021-06-25 11:48:26 +07:00
docker tools/docker: Add libpython2.7 in order to satisfy GDB dependencies 2020-09-02 18:15:52 +02:00
esp_app_trace style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
esp_prov ble-wifi-example-tests: Add fixes and cleanups to ble and wifi tests 2021-06-01 12:27:04 +05:30
find_build_apps style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
idf_py_actions tools: Split up large binaries into smaller chunks in the DFU binary 2021-05-31 19:25:00 +02:00
kconfig Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
kconfig_new style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
ldgen ldgen: refactor generation tests and description addition 2021-02-05 10:20:37 +08:00
mass_mfg docs: update api-reference chapters for C3 2021-03-02 15:00:56 +08:00
templates/sample_component add new command to idf 2020-09-21 23:38:52 +02:00
test_apps CI: Debug GDB issues 2021-07-27 20:03:57 +02:00
test_idf_monitor style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
test_idf_py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
test_idf_size tools: Don't count BSS into the total image size 2021-03-01 14:39:32 +01:00
test_idf_tools ci: add debug artifacts for test_idf_tools 2021-06-25 11:48:26 +07:00
test_mkdfu tools: Split up large binaries into smaller chunks in the DFU binary 2021-05-31 19:25:00 +02:00
test_mkuf2 style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
unit-test-app [test_utils]: added extern C decl to ccomp 2021-07-12 14:26:22 +08:00
windows Update toolchains to esp-2021r1 2021-06-25 11:48:25 +07:00
build_apps.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
check_python_dependencies.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
check_term.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
detect_python.fish tools: Prefer python3 during install and export 2021-02-14 18:49:21 +01:00
detect_python.sh tools: Prefer python3 during install and export 2021-02-14 18:49:21 +01:00
eclipse-code-style.xml tools: add code formatter rules for Eclipse 2016-11-03 18:41:00 +08:00
find_apps.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
format-minimal.sh global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs 2020-04-03 01:10:02 +02:00
format.sh global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs 2020-04-03 01:10:02 +02:00
gdb_panic_server.py tools/gdb_panic_server: wrap b"" with bytes() for py2.7 compatibility 2021-01-28 11:20:32 +01:00
gen_esp_err_to_name.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
idf_monitor.py tools: handle exception in case of logging Unicode characters 2021-04-06 19:16:15 +02:00
idf_size.py tools: Don't count BSS into the total image size 2021-03-01 14:39:32 +01:00
idf_tools.py tools: Catch OSError which is raised when the tool is not available 2021-06-24 09:14:50 +02:00
idf.py Run global_action_callbacks in predictable order 2021-06-04 15:56:41 +00:00
mkdfu.py tools: Split up large binaries into smaller chunks in the DFU binary 2021-05-31 19:25:00 +02:00
mkuf2.py style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
set-submodules-to-github.sh global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs 2020-04-03 01:10:02 +02:00
toolchain_versions.mk Update toolchains to esp-2021r1 2021-06-25 11:48:25 +07:00
tools_schema.json tools: add metadata file and idf_tools.py 2019-05-24 17:04:23 +08:00
tools.json Update toolchains to esp-2021r1 2021-06-25 11:48:25 +07:00