mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibJS: Use __APPLE__ instead of __MACH__ for MacOS build
This is regarding PR #234. Sergey pointed out that not every Mach is Darwin.
This commit is contained in:
parent
679a84d44c
commit
f4985ca113
Notes:
sideshowbarker
2024-07-19 06:12:26 +09:00
Author: https://github.com/nooga Commit: https://github.com/SerenityOS/serenity/commit/f4985ca113d Pull-request: https://github.com/SerenityOS/serenity/pull/2347 Reviewed-by: https://github.com/bugaevc ✅
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
#ifdef __serenity__
|
||||
# include <serenity.h>
|
||||
#elif __linux__ or __MACH__
|
||||
#elif __linux__ or __APPLE__
|
||||
# include <pthread.h>
|
||||
#endif
|
||||
|
||||
|
@ -157,7 +157,7 @@ void Heap::gather_conservative_roots(HashTable<Cell*>& roots)
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
pthread_attr_destroy(&attr);
|
||||
#elif __MACH__
|
||||
#elif __APPLE__
|
||||
stack_base = (FlatPtr)pthread_get_stackaddr_np(pthread_self());
|
||||
pthread_attr_t attr = {};
|
||||
if (int rc = pthread_attr_getstacksize(&attr, &stack_size) != 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue