Commit b7bb5c98 by Ian Lance Taylor

Permit upper case characters in typedef of size_t in <sys/types.h>.

From-SVN: r6591
parent e5fed6e6
...@@ -474,10 +474,10 @@ fi ...@@ -474,10 +474,10 @@ fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
echo Fixing $file echo Fixing $file
sed -e '/typedef[ ][ ]*[a-z_][ a-z_]*[ ]size_t/i\ sed -e '/typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t/i\
#ifndef _GCC_SIZE_T\ #ifndef _GCC_SIZE_T\
#define _GCC_SIZE_T' \ #define _GCC_SIZE_T' \
-e '/typedef[ ][ ]*[a-z_][ a-z_]*[ ]size_t/a\ -e '/typedef[ ][ ]*[A-Za-z_][ A-Za-z_]*[ ]size_t/a\
#endif' ${LIB}/$file > ${LIB}/${file}.sed #endif' ${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if cmp $file ${LIB}/$file >/dev/null 2>&1; then if cmp $file ${LIB}/$file >/dev/null 2>&1; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment