Skip to content

Commit

Permalink
fix warning C4005: 'MAX_BITS': macro redefinition (compiling source f…
Browse files Browse the repository at this point in the history
…ile ../../thirdparty/owemdjee/dcmtk/dcmimage/apps/dcmicmp.cc) : see previous definition of 'MAX_BITS' (compiling source file ../../thirdparty/owemdjee/dcmtk/dcmimage/apps/dcmicmp.cc)
  • Loading branch information
GerHobbelt committed Nov 26, 2024
1 parent aed6541 commit 4d5be2e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dcmimgle/include/dcmtk/dcmimgle/diutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@

#include "dcmtk/dcmimgle/didefine.h"

// fix for MAX_BIS clash with zlib: make sure we've loaded zlib before we *re*define MAX_BITS further below!
#ifdef WITH_ZLIB
#include <zlib-ng.h> /* for MAX_BITS */
#endif

#undef MAX_BITS

extern DCMTK_DCMIMGLE_EXPORT OFLogger DCM_dcmimgleLogger;

#define DCMIMGLE_TRACE(msg) OFLOG_TRACE(DCM_dcmimgleLogger, msg)
Expand Down

0 comments on commit 4d5be2e

Please sign in to comment.