Browse Source

tools/externc: Remove #endif in extern C pattern match

Enable adding more C++ specifics inside the same ifdef block (e.g. sys/include/vfs.h)
pr/rotary
Joakim Nohlgård 6 years ago
parent
commit
5638359960
  1. 2
      dist/tools/externc/check.sh

2
dist/tools/externc/check.sh vendored

@ -36,7 +36,7 @@ for FILE in ${FILES}; do
| sed -e 's/$/ /' \
| tr -d '\r\n' \
| sed -e 's/ */ /g' \
| grep -v -q '#ifdef __cplusplus extern "C" { #endif'; \
| grep -v -q '#ifdef __cplusplus extern "C" {'; \
then
EXIT_CODE=1
echo "file does not have a C++ compatible header: '${FILE}'"

Loading…
Cancel
Save