diff --git a/docs/reference/glib/glib-overrides.txt b/docs/reference/glib/glib-overrides.txt index 8f29a48d4..991fcf2d0 100644 --- a/docs/reference/glib/glib-overrides.txt +++ b/docs/reference/glib/glib-overrides.txt @@ -196,11 +196,6 @@ GCond *cond # Definitions for different operating systems - -G_OS_DARWIN -#define G_OS_DARWIN - - G_OS_UNIX #define G_OS_UNIX diff --git a/docs/reference/glib/glib-sections.txt.in b/docs/reference/glib/glib-sections.txt.in index f81b454d3..face9dec6 100644 --- a/docs/reference/glib/glib-sections.txt.in +++ b/docs/reference/glib/glib-sections.txt.in @@ -140,7 +140,6 @@ GLIB_VERSION_PREV_STABLE Standard Macros macros -G_OS_DARWIN G_OS_WIN32 G_OS_UNIX diff --git a/glib/docs.c b/glib/docs.c index 9883cfbf7..0171da41f 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -1997,17 +1997,6 @@ * These macros provide a few commonly-used features. */ -/** - * 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. - * - * Since: 2.76 - */ - /** * G_OS_WIN32: * diff --git a/glib/tests/macros.c b/glib/tests/macros.c index cbbc0f6de..efe632b52 100644 --- a/glib/tests/macros.c +++ b/glib/tests/macros.c @@ -20,19 +20,8 @@ * Author: Philip Withnall */ -#include "config.h" - #include -#if defined (__APPLE__) || defined (HAVE_COCOA) || defined (HAVE_CARBON) -# ifndef G_OS_UNIX - G_STATIC_ASSERT (FALSE); -# endif -# ifndef G_OS_DARWIN - G_STATIC_ASSERT (FALSE); -# endif -#endif - /* Test that G_STATIC_ASSERT_EXPR can be used as an expression */ static void test_assert_static (void) diff --git a/meson.build b/meson.build index 40842c918..2d434ad8e 100644 --- a/meson.build +++ b/meson.build @@ -276,9 +276,6 @@ if host_system == 'windows' elif host_system == 'cygwin' glib_os = '''#define G_OS_UNIX #define G_WITH_CYGWIN''' -elif host_system in ['darwin', 'ios'] - glib_os = '''#define G_OS_UNIX -#define G_OS_DARWIN''' else glib_os = '#define G_OS_UNIX' endif