diff --git a/src/OpenColorIO/OCIOZArchive.cpp b/src/OpenColorIO/OCIOZArchive.cpp index 982fce6823..9630ae0065 100644 --- a/src/OpenColorIO/OCIOZArchive.cpp +++ b/src/OpenColorIO/OCIOZArchive.cpp @@ -226,7 +226,7 @@ void archiveConfig(std::ostream & ostream, const Config & config, const char * c std::string configStr = ss.str(); // Write zip to memory stream. -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 write_mem_stream = mz_stream_mem_create(); #else mz_stream_mem_create(&write_mem_stream); @@ -242,7 +242,7 @@ void archiveConfig(std::ostream & ostream, const Config & config, const char * c options.compress_level = ArchiveCompressionLevels::BEST; // Create the writer handle. -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 archiver = mz_zip_writer_create(); #else mz_zip_writer_create(&archiver); @@ -341,7 +341,7 @@ void ExtractOCIOZArchive(const char * archivePath, const char * destination) std::string outputDestination = pystring::os::path::normpath(destination); // Create zip reader. -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 extracter = mz_zip_reader_create(); #else mz_zip_reader_create(&extracter); @@ -463,7 +463,7 @@ std::vector getFileStringFromArchiveFile(const std::string & filepath, std::vector buffer; // Create the reader object. -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 reader = mz_zip_reader_create(); #else mz_zip_reader_create(&reader); @@ -527,7 +527,7 @@ void getEntriesMappingFromArchiveFile(const std::string & archivePath, void *reader = NULL; // Create the reader object. -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 reader = mz_zip_reader_create(); #else mz_zip_reader_create(&reader); diff --git a/src/apps/ocioarchive/main.cpp b/src/apps/ocioarchive/main.cpp index 68054a6daf..a5abd03a10 100644 --- a/src/apps/ocioarchive/main.cpp +++ b/src/apps/ocioarchive/main.cpp @@ -235,7 +235,7 @@ int main(int argc, const char **argv) } std::string path = args[0]; -#if MZ_VERSION_BUILD >= 040000 +#if MZ_VERSION_BUILD >= 0x040000 reader = mz_zip_reader_create(); #else mz_zip_reader_create(&reader);