1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/sam0_common/include/vendor/fix_cxx_compat.sh

11 lines
295 B
Bash
Raw Normal View History

#!/bin/sh
# This script removes type qualifiers from anonymous padding fields in bit
# fields for compatibility with clang++.
offenders="$(grep -Erl '__I [u]*int[0-9]*_t[ \t]*:[0-9]*;')"
for file in $offenders; do
sed -i "$file" -e 's/__I \([u]*int[0-9]*_t[\t ]*:[0-9]*;\)/\1 /g'
done