meson: Define G_OS_DARWIN when compiling under OSX or iOS

It has enough differences to expose it as an unix-subtype.
This commit is contained in:
Marco Trevisan (Treviño)
2022-10-18 21:59:59 +02:00
parent 4b6cc2d87b
commit e85635daa0
5 changed files with 31 additions and 0 deletions

View File

@@ -196,6 +196,11 @@ GCond *cond
# Definitions for different operating systems
<MACRO>
<NAME>G_OS_DARWIN</NAME>
#define G_OS_DARWIN
</MACRO>
<MACRO>
<NAME>G_OS_UNIX</NAME>
#define G_OS_UNIX

View File

@@ -140,6 +140,7 @@ GLIB_VERSION_PREV_STABLE
<TITLE>Standard Macros</TITLE>
<FILE>macros</FILE>
<SUBSECTION>
G_OS_DARWIN
G_OS_WIN32
G_OS_UNIX