mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
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.
12 lines
600 B
Markdown
12 lines
600 B
Markdown
Wuffs ships as a "single file C library", also known as a "[header file
|
|
library](https://github.com/nothings/stb/blob/master/docs/stb_howto.txt)".
|
|
|
|
To use Wuffs in your C/C++ project, you just need to copy one file from this
|
|
directory, or otherwise integrate that one file into your build system.
|
|
Typically, pick the latest version (but not the unsupported snapshot), with a
|
|
filename like `wuffs-vMAJOR.MINOR.c` for version MAJOR.MINOR.
|
|
|
|
To use that single file as a "foo.c"-like implementation, instead of a
|
|
"foo.h"-like header, `#define WUFFS_IMPLEMENTATION` before `#include`'ing or
|
|
compiling it.
|