Commit cfe8fed0 by Ian Lance Taylor

Only include <stdio.h> and <stdlib.h> in <assert.h> for C++

From-SVN: r8873
parent 8919037c
......@@ -2120,7 +2120,9 @@ if [ -r ${LIB}/$file ]; then
true
else
echo "Fixing $file (needs stdio.h)"
echo '#include <stdio.h>' >>${LIB}/$file
echo '#ifdef __cplusplus
#include <stdio.h>
#endif' >>${LIB}/$file
fi
fi
if grep 'exit *(' ${LIB}/$file >/dev/null 2>/dev/null ||
......@@ -2129,7 +2131,9 @@ if [ -r ${LIB}/$file ]; then
true
else
echo "Fixing $file (needs stdlib.h)"
echo '#include <stdlib.h>' >>${LIB}/$file
echo '#ifdef __cplusplus
#include <stdlib.h>
#endif' >>${LIB}/$file
fi
fi
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