mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 08:47:28 +01:00
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:
1 parent
b0429923fc
commit
04c91f1410
24 files changed
+40
-49
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user