]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed bug #976, reported by @indygreg
authorYann Collet <cyan@fb.com>
Thu, 11 Jan 2018 04:33:45 +0000 (20:33 -0800)
committerYann Collet <cyan@fb.com>
Thu, 11 Jan 2018 04:33:45 +0000 (20:33 -0800)
commitff795580f2e9acb02d1a68b9e2f1d4a17a4e3343
tree63935a675c5852a9b2f6efb825e7fa297f8052f8
parent06995775b06a467802d43bcabd200cb120da2ead
fixed bug #976, reported by @indygreg

constants in zstd.h should not depend on MIN() macro which existence is not guaranteed.

Added a test to check the specific constants.
The test is a bit too specific.
But I have found no way to control a more generic "are all macro already defined" condition,
especially as this is a valid construction (the missing macro might be defined later, intentionnally).
lib/zstd.h
tests/fuzzer.c