mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Do not define GIO_COMPILATION for executables
It must only be defined when building libgio. This requires some workaround to allow include of some gio private headers. When GIO_COMPILATION is not defined we cannot include individual gio headers. We workaround that by defining __GIO_GIO_H_INSIDE__ in some places. Also gdbusprivate.h is not an installed header, so it's fine to include it directly.
This commit is contained in:
@@ -23,10 +23,6 @@
|
||||
#ifndef __G_DBUS_PRIVATE_H__
|
||||
#define __G_DBUS_PRIVATE_H__
|
||||
|
||||
#if !defined (GIO_COMPILATION)
|
||||
#error "gdbusprivate.h is a private header file."
|
||||
#endif
|
||||
|
||||
#include <gio/giotypes.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
Reference in New Issue
Block a user