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

+2 -2
View File
@@ -34,7 +34,7 @@ for a C compiler $CC, such as clang or gcc.
#define WUFFS_IMPLEMENTATION
// Defining the WUFFS_CONFIG__MODULE* macros are optional, but it lets users of
// release/c/etc.h whitelist which parts of Wuffs to build. That file contains
// release/c/etc.c whitelist which parts of Wuffs to build. That file contains
// the entire Wuffs standard library, implementing a variety of codecs and file
// formats. Without this macro definition, an optimizing compiler or linker may
// very well discard Wuffs code for unused codecs, but listing the Wuffs
@@ -49,7 +49,7 @@ for a C compiler $CC, such as clang or gcc.
// If building this program in an environment that doesn't easily accommodate
// relative includes, you can use the script/inline-c-relative-includes.go
// program to generate a stand-alone C file.
#include "../../release/c/wuffs-unsupported-snapshot.h"
#include "../../release/c/wuffs-unsupported-snapshot.c"
#ifdef __linux__
#include <linux/prctl.h>