aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-simple-status.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-simple-status.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-simple-status.h')
-rw-r--r--libmm-glib/mm-simple-status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-simple-status.h b/libmm-glib/mm-simple-status.h
index 884b6b95..fa535616 100644
--- a/libmm-glib/mm-simple-status.h
+++ b/libmm-glib/mm-simple-status.h
@@ -16,6 +16,10 @@
#ifndef MM_SIMPLE_STATUS_H
#define MM_SIMPLE_STATUS_H
+#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION)
+#error "Only <libmm-glib.h> can be included directly."
+#endif
+
#include <ModemManager.h>
#include <glib-object.h>