Have example/library check !WUFFS_IMPLEMENTATION

This commit is contained in:
Nigel Tao committed 2019-03-09 11:08:35 +11:00
1 parent 7e384e079e
commit 19086f1c11
1 file changed
+3
+3
View File
@@ -40,6 +40,9 @@ for a C compiler $CC, such as clang or gcc.
//
// 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.
#if defined(WUFFS_IMPLEMENTATION)
#error "example/library should not #define WUFFS_IMPLEMENTATION"
#endif
#include "wuffs/release/c/wuffs-unsupported-snapshot.c"
#ifndef DST_BUFFER_SIZE