aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-modem-messaging.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-modem-messaging.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-modem-messaging.h')
-rw-r--r--libmm-glib/mm-modem-messaging.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-modem-messaging.h b/libmm-glib/mm-modem-messaging.h
index e911c005..0162a857 100644
--- a/libmm-glib/mm-modem-messaging.h
+++ b/libmm-glib/mm-modem-messaging.h
@@ -24,6 +24,10 @@
#ifndef _MM_MODEM_MESSAGING_H_
#define _MM_MODEM_MESSAGING_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 "mm-gdbus-modem.h"