Have build-all.sh check as a .h file, not just .c
@@ -50,10 +50,14 @@ go test github.com/google/wuffs/...
wuffs gen
echo "Checking snapshot compiles cleanly (as C)"
+$CC -c -Wall -Werror -std=c99 \
+ release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CC -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c99 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
echo "Checking snapshot compiles cleanly (as C++)"
+$CXX -c -Wall -Werror -std=c++11 \
+ release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CXX -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c++11 \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
