fixes for compile errors on macOS 10.13 with XCode 10.1 #527
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
some changes that were required to compile mimalloc on macOS 10.13:
mi_atomic_load_relaxedatomic_load_relaxedshould be const so perhaps this is a bug in the XCode 10.1<stdatomic.h>header, nevertheless, a change is needed to get mimalloc to compile with this version of the XCode C library headers. an alternative fix may be to make the segment pointer non-const.claimed_addressis not present inmalloc_zone_tuntil macOS 10.14libmallocversions to verify this field first appears in macOS 10.14.aligned_allocis not present in C on any version of macOSXcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.hbut not in any of the SDK/usr/include/stdlib.hheaders, so one presumes it is only available in C++ on macOS.