Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define stat64 __stat64
#endif

#if defined(__APPLE__)
#if defined(__APPLE__) || !defined (__GLIBC__)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that change is correct - it would conflict with the define for stat64 when _MSC_VER is defined (above)

Maybe (assuming that __GLIBC__ isn't defined for __APPLE__ anyway):

#ifdef _MSC_VER
#define stat64 __stat64
#elif !defined(__GLIBC__)
#define stat64 stat
#endif

#define stat64 stat
#endif

Expand Down