diff options
Diffstat (limited to 'glib/tests/macros.c')
-rw-r--r-- | glib/tests/macros.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/glib/tests/macros.c b/glib/tests/macros.c index 974d4c489..7779c164d 100644 --- a/glib/tests/macros.c +++ b/glib/tests/macros.c @@ -40,6 +40,9 @@ # ifndef G_OS_FREEBSD #error "G_OS_FREEBSD is not defined" # endif +# ifndef G_OS_BSD + #error "G_OS_BSD is not defined" +# endif #endif #if defined (__OpenBSD__) @@ -49,6 +52,9 @@ # ifndef G_OS_OPENBSD #error "G_OS_OPENBSD is not defined" # endif +# ifndef G_OS_BSD + #error "G_OS_BSD is not defined" +# endif #endif #if defined (__APPLE__) || defined (HAVE_COCOA) || defined (HAVE_CARBON) @@ -58,12 +64,19 @@ # ifndef G_OS_DARWIN #error "G_OS_DARWIN is not defined" # endif +# ifndef G_OS_BSD + #error "G_OS_BSD is not defined" +# endif #endif #if defined (G_OS_UNIX) && defined (G_OS_WIN32) #error "G_OS_WIN32 and G_OS_UNIX should not be defined together" #endif +#if (defined (G_OS_LINUX) || !defined (G_OS_UNIX)) && defined (G_OS_BSD) + #error "G_OS_BSD should not be defined" +#endif + /* Test that G_STATIC_ASSERT_EXPR can be used as an expression */ static void test_assert_static (void) |