Skip to content

Commit

Permalink
Fix compile issues with "gcc -ansi"
Browse files Browse the repository at this point in the history
  • Loading branch information
uroni committed Nov 27, 2016
1 parent 8ac1bf6 commit 8e30365
Show file tree
Hide file tree
Showing 10 changed files with 1,209 additions and 1,163 deletions.
3 changes: 2 additions & 1 deletion amalgamate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cat miniz_zip.c >> $OUTPUT_PREFIX.c
cat miniz_zip.h >> $OUTPUT_PREFIX.h


sed -i 's/#include "miniz.h"/#include "miniz.h"/' $OUTPUT_PREFIX.c
sed -i '0,/#include "miniz.h"/{s/#include "miniz.h"/#include "miniz.h"/}' $OUTPUT_PREFIX.c
for i in miniz miniz_common miniz_tdef miniz_tinfl miniz_zip
do
sed -i "s/#include \"$i.h\"//g" $OUTPUT_PREFIX.h
Expand All @@ -26,6 +26,7 @@ done

echo "int main() { return 0; }" > main.c
gcc main.c $OUTPUT_PREFIX.c -o test.out
gcc -ansi main.c $OUTPUT_PREFIX.c -o test.out
rm test.out
rm main.c

Expand Down
Loading

0 comments on commit 8e30365

Please sign in to comment.