Generate .c files instead of .h files

The files' contents haven't changed (other than some relative #include's
that refer to other .c files).

Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
This commit is contained in:
Nigel Tao committed 2018-12-22 15:29:00 +11:00
1 parent b0429923fc
commit 04c91f1410
24 files changed
+40 -49

No files matched your search

+6 -1
View File
@@ -33,7 +33,12 @@ for a C compiler $CC, such as clang or gcc.
#include <stdlib.h>
#include <unistd.h>
#include "wuffs/release/c/wuffs-unsupported-snapshot.h"
// Wuffs ships as a "single file C library" or "header file library" as per
// https://github.com/nothings/stb/blob/master/docs/stb_howto.txt
//
// By #include'ing it "as is" without #define'ing WUFFS_IMPLEMENTATION, we use
// it as a "foo.h"-like header, instead of a "foo.c"-like implementation.
#include "wuffs/release/c/wuffs-unsupported-snapshot.c"
#define DST_BUFFER_SIZE (1024 * 1024)