Skip to content

Commit

Permalink
minizip warning fix if MAXU32 already defined. (gvollant)
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Jan 1, 2022
1 parent 8678871 commit b135d46
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions contrib/minizip/ioapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ typedef 64BIT_INT_CUSTOM_TYPE ZPOS64_T;
typedef uint64_t ZPOS64_T;
#else

/* Maximum unsigned 32-bit value used as placeholder for zip64 */
#define MAXU32 0xffffffff


#if defined(_MSC_VER) || defined(__BORLANDC__)
typedef unsigned __int64 ZPOS64_T;
Expand All @@ -102,7 +101,10 @@ typedef unsigned long long int ZPOS64_T;
#endif
#endif


/* Maximum unsigned 32-bit value used as placeholder for zip64 */
#ifndef MAXU32
#define MAXU32 (0xffffffff)
#endif

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit b135d46

Please sign in to comment.