From ad4c59c3c65f15217ba0ef53099ee7f6a79be161 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 2 Nov 2022 10:19:35 +0000 Subject: [PATCH] docs: Mention __APPLE__ instead of G_OS_DARWIN for detecting Darwin See discussion on #2802 and in the previous two commits. Signed-off-by: Philip Withnall Fixes: #2802 --- glib/docs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/glib/docs.c b/glib/docs.c index 0171da41f..1ca7927fb 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -2018,13 +2018,10 @@ * - Linux kernel and GNU user-space: `\#if defined(__linux__) && defined(__GLIBC__)` * - FreeBSD kernel (any libc, including glibc): `\#ifdef __FreeBSD_kernel__` * - FreeBSD kernel and user-space: `\#ifdef __FreeBSD__` + * - Apple operating systems (macOS, iOS, tvOS), regardless of whether + * Cocoa/Carbon toolkits are available: `\#ifdef __APPLE__` * * See for more. - * - * GLib defines OS-detection macros for some categories of systems - * that can be less straightforward to detect, such as %G_OS_DARWIN, but - * intentionally does not provide its own equivalents of macros like - * `__linux__`. */ /**