mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
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.h` 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.
|