Skip to content

Commit

Permalink
Fix windows zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 17, 2024
1 parent b4ee265 commit 3c3c8b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thirdparty/zlib/zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
==============================================================================
*/

#define YUP_ZLIB_INTERNAL_NOUNDEF
#include "zlib.h"
#undef YUP_ZLIB_INTERNAL_NOUNDEF

#include <stdlib.h>
#include <stdio.h>
Expand Down
10 changes: 10 additions & 0 deletions thirdparty/zlib/zlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ extern "C" {
#if __cplusplus
} // extern "C"
#endif

#if ! defined(YUP_ZLIB_INTERNAL_NOUNDEF)
#undef Byte
#undef fdopen
#undef local
#undef Freq
#undef Code
#undef Dad
#undef Len
#endif

0 comments on commit 3c3c8b4

Please sign in to comment.