Check that we do not #define WUFFS_IMPLEMENTATION

Bug: skia:8235
Change-Id: Ie36301acf1779c8c33f69d9dfc986562d96992c7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/199441
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
This commit is contained in:
Nigel Tao 2019-03-09 15:03:14 +11:00 committed by Skia Commit-Bot
parent 48aa221e60
commit e66a0b212a

View File

@ -18,6 +18,9 @@
//
// As we have not #define'd WUFFS_IMPLEMENTATION, the #include here is
// including a header file, even though that file name ends in ".c".
#if defined(WUFFS_IMPLEMENTATION)
#error "SkWuffsCodec should not #define WUFFS_IMPLEMENTATION"
#endif
#include "wuffs-v0.2.c"
#if WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT < 1655
#error "Wuffs version is too old. Upgrade to the latest version."