aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-bearer-properties.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-03 13:01:25 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-04 10:17:12 +0200
commit433fdea6d4107dcbe7848a28aa492c44742a00c2 (patch)
tree5f7fe2aac107b3ac7de99f6fc361380018965209 /libmm-glib/mm-bearer-properties.h
parentc250fa3797b40f70cbac1d9e417b1d3ad946ee89 (diff)
libmm-glib: only allow including `libmm-glib.h' directly
Unless when compiling libmm-glib itself, of course.
Diffstat (limited to 'libmm-glib/mm-bearer-properties.h')
-rw-r--r--libmm-glib/mm-bearer-properties.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-bearer-properties.h b/libmm-glib/mm-bearer-properties.h
index 8272e6b6..74536d8d 100644
--- a/libmm-glib/mm-bearer-properties.h
+++ b/libmm-glib/mm-bearer-properties.h
@@ -19,6 +19,10 @@
#include <ModemManager.h>
#include <glib-object.h>
+#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION)
+#error "Only <libmm-glib.h> can be included directly."
+#endif
+
G_BEGIN_DECLS
#define MM_TYPE_BEARER_PROPERTIES (mm_bearer_properties_get_type ())