From 19086f1c1180e2ec9bafff8b427082bb23776d4a Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 9 Mar 2019 11:08:35 +1100 Subject: [PATCH] Have example/library check !WUFFS_IMPLEMENTATION --- example/library/library.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/library/library.c b/example/library/library.c index cd5468a1..8726ca3c 100644 --- a/example/library/library.c +++ b/example/library/library.c @@ -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