From ae0b7ffa0a0edee2342f97115f37c23febc9746b Mon Sep 17 00:00:00 2001 From: cyan4973 Date: Wed, 20 Jun 2018 09:45:02 -0700 Subject: [PATCH] made Visual Studio compatible with DEBUGLEVEL >= 2 --- build/VS2010/fullbench/fullbench.vcxproj | 3 ++- build/VS2010/fuzzer/fuzzer.vcxproj | 1 + build/VS2010/libzstd-dll/libzstd-dll.vcxproj | 1 + build/VS2010/libzstd/libzstd.vcxproj | 1 + build/VS2010/zstd/zstd.vcxproj | 3 ++- lib/compress/zstdmt_compress.c | 4 ++-- programs/windres/zstd32.res | Bin 1044 -> 1044 bytes programs/windres/zstd64.res | Bin 1044 -> 1044 bytes 8 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build/VS2010/fullbench/fullbench.vcxproj b/build/VS2010/fullbench/fullbench.vcxproj index 2ec8c4f6..19faf92c 100644 --- a/build/VS2010/fullbench/fullbench.vcxproj +++ b/build/VS2010/fullbench/fullbench.vcxproj @@ -156,13 +156,14 @@ - + + diff --git a/build/VS2010/fuzzer/fuzzer.vcxproj b/build/VS2010/fuzzer/fuzzer.vcxproj index ac400028..f0d1ab06 100644 --- a/build/VS2010/fuzzer/fuzzer.vcxproj +++ b/build/VS2010/fuzzer/fuzzer.vcxproj @@ -156,6 +156,7 @@ + diff --git a/build/VS2010/libzstd-dll/libzstd-dll.vcxproj b/build/VS2010/libzstd-dll/libzstd-dll.vcxproj index db9fdedb..92d518d3 100644 --- a/build/VS2010/libzstd-dll/libzstd-dll.vcxproj +++ b/build/VS2010/libzstd-dll/libzstd-dll.vcxproj @@ -20,6 +20,7 @@ + diff --git a/build/VS2010/libzstd/libzstd.vcxproj b/build/VS2010/libzstd/libzstd.vcxproj index 9550b03c..c306fcec 100644 --- a/build/VS2010/libzstd/libzstd.vcxproj +++ b/build/VS2010/libzstd/libzstd.vcxproj @@ -20,6 +20,7 @@ + diff --git a/build/VS2010/zstd/zstd.vcxproj b/build/VS2010/zstd/zstd.vcxproj index 36a265a3..4af28132 100644 --- a/build/VS2010/zstd/zstd.vcxproj +++ b/build/VS2010/zstd/zstd.vcxproj @@ -19,14 +19,15 @@ + - + diff --git a/lib/compress/zstdmt_compress.c b/lib/compress/zstdmt_compress.c index 0c59c6a7..a348361a 100644 --- a/lib/compress/zstdmt_compress.c +++ b/lib/compress/zstdmt_compress.c @@ -37,7 +37,7 @@ #define ZSTD_RESIZE_SEQPOOL 0 /* ====== Debug ====== */ -#if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) +#if defined(DEBUGLEVEL) && (DEBUGLEVEL>=2) && !defined(_MSC_VER) # include # include @@ -47,7 +47,7 @@ unsigned debug_u; \ for (debug_u=0; debug_u<(n); debug_u++) \ RAWLOG(l, "%02X ", ((const unsigned char*)(p))[debug_u]); \ - RAWLOG(l, " \n"); \ + RAWLOG(l, " \n"); \ } static unsigned long long GetCurrentClockTimeMicroseconds(void) diff --git a/programs/windres/zstd32.res b/programs/windres/zstd32.res index d6caf985ed2a9469d7a06c8518fc8af5780e34d5..26800ab321c2fc6b0a0d57a28e2710f71c8732c7 100644 GIT binary patch delta 33 ncmbQjF@