Skip to content

Commit 764aa44

Browse files
committed
remove macOS preprocessor macros that do not exist (anymore). issue #879
1 parent 8f7d1e9 commit 764aa44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prim/unix/prim.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ terms of the MIT license. A copy of the license can be found in the file
4242
#elif defined(__APPLE__)
4343
#include <AvailabilityMacros.h>
4444
#include <TargetConditionals.h>
45-
#if !TARGET_IOS_IPHONE && !TARGET_IOS_SIMULATOR
46-
#include <mach/vm_statistics.h>
45+
#if !defined(TARGET_OS_OSX) || TARGET_OS_OSX // see issue #879, used to be (!TARGET_IOS_IPHONE && !TARGET_IOS_SIMULATOR)
46+
#include <mach/vm_statistics.h> // VM_MAKE_TAG, VM_FLAGS_SUPERPAGE_SIZE_2MB, etc.
4747
#endif
4848
#if !defined(MAC_OS_X_VERSION_10_7)
4949
#define MAC_OS_X_VERSION_10_7 1070

0 commit comments

Comments
 (0)