diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-19 16:28:18 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-10-20 16:12:39 +0200 |
commit | 3e2dda55a2f2cefb93eb001d685b5aed07e1feb1 (patch) | |
tree | e8da34d522c5b2d4cb49eb87e23c1dc94668bc4e /glib/docs.c | |
parent | 62b5c727feeb254931cea2269395d63ecc7c34cd (diff) | |
download | glib-wip/3v1n0/more-unix-oses.tar.gz |
glib: Add generic G_OS_BSD definition on such platformswip/3v1n0/more-unix-oses
There is some downstream code and our tests that may at times need to
check for all BSD kinds, so just a more generic way to handle this
Diffstat (limited to 'glib/docs.c')
-rw-r--r-- | glib/docs.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/glib/docs.c b/glib/docs.c index 1e4ea9778..91f5c8334 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -1648,12 +1648,23 @@ */ /** + * G_OS_BSD: + * + * This macro is defined only on BSD operating systems. So you can bracket + * BSD-specific code in `\#ifdef G_OS_BSD`. + * + * Note that %G_OS_UNIX is also set. + * + * Since: 2.76 + */ + +/** * G_OS_DARWIN: * * This macro is defined only on Apple operating systems (macOS or iOS). * So you can bracket Apple-specific code in `\#ifdef G_OS_DARWIN`. * - * Note that %G_OS_UNIX is also set. + * Note that %G_OS_UNIX and %G_OS_BSD is also set. * * Since: 2.76 */ @@ -1664,7 +1675,7 @@ * This macro is defined only on FreeBSD operating system. So you can bracket * FreeBSD-specific code in `\#ifdef G_OS_FREEBSD`. * - * Note that %G_OS_UNIX is also set. + * Note that %G_OS_UNIX and %G_OS_BSD is also set. * * Since: 2.76 */ @@ -1686,7 +1697,7 @@ * This macro is defined only on OpenBSD operating system. So you can bracket * OpenBSD-specific code in `\#ifdef G_OS_OPENBSD`. * - * Note that %G_OS_UNIX is also set. + * Note that %G_OS_UNIX and %G_OS_BSD is also set. * * Since: 2.76 */ |