mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
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 <pwithnall@endlessos.org> Fixes: #2802
This commit is contained in:
parent
9ebb491d55
commit
ad4c59c3c6
@ -2018,13 +2018,10 @@
|
|||||||
* - Linux kernel and GNU user-space: `\#if defined(__linux__) && defined(__GLIBC__)`
|
* - Linux kernel and GNU user-space: `\#if defined(__linux__) && defined(__GLIBC__)`
|
||||||
* - FreeBSD kernel (any libc, including glibc): `\#ifdef __FreeBSD_kernel__`
|
* - FreeBSD kernel (any libc, including glibc): `\#ifdef __FreeBSD_kernel__`
|
||||||
* - FreeBSD kernel and user-space: `\#ifdef __FreeBSD__`
|
* - FreeBSD kernel and user-space: `\#ifdef __FreeBSD__`
|
||||||
|
* - Apple operating systems (macOS, iOS, tvOS), regardless of whether
|
||||||
|
* Cocoa/Carbon toolkits are available: `\#ifdef __APPLE__`
|
||||||
*
|
*
|
||||||
* See <https://sourceforge.net/p/predef/wiki/OperatingSystems/> for more.
|
* See <https://sourceforge.net/p/predef/wiki/OperatingSystems/> 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__`.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user