]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix legacy support=0 case and accidental double include of version headers 600/head
authorSean Purcell <me@seanp.xyz>
Tue, 14 Mar 2017 00:19:37 +0000 (17:19 -0700)
committerSean Purcell <me@seanp.xyz>
Tue, 14 Mar 2017 00:19:37 +0000 (17:19 -0700)
lib/legacy/zstd_legacy.h

index 18e22e6512a21681f7fa86b48877f3abec65f74f..3c9798f880e00cce9c379f01290ec19379b01457 100644 (file)
@@ -20,15 +20,9 @@ extern "C" {
 #include "mem.h"            /* MEM_STATIC */
 #include "error_private.h"  /* ERROR */
 #include "zstd.h"           /* ZSTD_inBuffer, ZSTD_outBuffer */
-#include "zstd_v01.h"
-#include "zstd_v02.h"
-#include "zstd_v03.h"
-#include "zstd_v04.h"
-#include "zstd_v05.h"
-#include "zstd_v06.h"
-#include "zstd_v07.h"
 
-#ifndef ZSTD_LEGACY_SUPPORT
+#if !defined (ZSTD_LEGACY_SUPPORT) || (ZSTD_LEGACY_SUPPORT == 0)
+#  undef ZSTD_LEGACY_SUPPORT
 #  define ZSTD_LEGACY_SUPPORT 8
 #endif