Fixing VS 2015 compilation issue

This commit is contained in:
Rich Geldreich
2021-03-16 21:31:17 -04:00
parent a7994821e5
commit 7fa283edb0

View File

@@ -594,15 +594,15 @@ mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int
#ifndef MINIZ_HEADER_FILE_ONLY
#include <string.h>
#include <assert.h>
namespace buminiz {
typedef unsigned char mz_validate_uint16[sizeof(mz_uint16)==2 ? 1 : -1];
typedef unsigned char mz_validate_uint32[sizeof(mz_uint32)==4 ? 1 : -1];
typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 : -1];
#include <string.h>
#include <assert.h>
#define MZ_ASSERT(x) assert(x)
#ifdef MINIZ_NO_MALLOC