Skip to content

Commit

Permalink
Fixed compiler warnings on Mac OS X, which #defines memcpy and memset
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 12, 2017
1 parent 1a63ee3 commit 5d56465
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miniz.h
Expand Up @@ -948,7 +948,9 @@ typedef unsigned char mz_validate_uint64[sizeof(mz_uint64)==8 ? 1 : -1];
#include <assert.h>

// Defines to remove C runtime dependency
#undef memset
#define memset SDL_memset
#undef memcpy
#define memcpy SDL_memcpy

//#define MZ_ASSERT(x) assert(x)
Expand Down

0 comments on commit 5d56465

Please sign in to comment.