Skip to content

Commit

Permalink
Merge pull request #493 from Don-Ward/fix-apple-M4-build
Browse files Browse the repository at this point in the history
Fix build failure on macOS with Apple's arm processor.
  • Loading branch information
Jafaral authored Dec 12, 2024
2 parents 767fecf + 1857447 commit 8fee0b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpm/lib/xpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
#define XpmRevision 11
#define XpmIncludeVersion ((XpmFormat * 100 + XpmVersion) * 100 + XpmRevision)

/* Check we aren't running macOS on Apple's processors */
#if !(defined(__APPLE__) && defined(__arm64))
#define _POSIX_C_SOURCE 200809L
#endif /* macOS on Apple silicon */

#ifdef FOR_MSW
# define SYSV /* uses memcpy string.h etc. */
Expand Down

0 comments on commit 8fee0b2

Please sign in to comment.