Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Fix compilation on MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
jungikim committed Jan 16, 2017
1 parent 8a3f759 commit 2c2a32a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/TH/THDiskFile.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const char *THDiskFile_name(THFile *self)

/* workaround mac osx lion ***insane*** fread bug */
#ifdef __APPLE__
#define THMin(X, Y) ((X) < (Y) ? (X) : (Y))
size_t fread__(void *ptr, size_t size, size_t nitems, FILE *stream)
{
size_t nread = 0;
Expand Down

0 comments on commit 2c2a32a

Please sign in to comment.