Skip to content

Commit

Permalink
Include Darwin CoreFoundation.h only if 32-bit ARM
Browse files Browse the repository at this point in the history
Issue #594 (bdwgc).

* darwin_stop_world.c [GC_DARWIN_THREADS]: Include CoreFoundation.h
only if ARM32 and ARM_THREAD_STATE32.
  • Loading branch information
ivmai committed Dec 12, 2023
1 parent a753bcb commit 98b5d38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion darwin_stop_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

#include <sys/sysctl.h>
#include <mach/machine.h>
#include <CoreFoundation/CoreFoundation.h>

#if defined(ARM32) && defined(ARM_THREAD_STATE32)
# include <CoreFoundation/CoreFoundation.h>
#endif

/* From "Inside Mac OS X - Mach-O Runtime Architecture" published by Apple
Page 49:
Expand Down

0 comments on commit 98b5d38

Please sign in to comment.