diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-03 13:01:25 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-10-04 10:17:12 +0200 |
commit | 433fdea6d4107dcbe7848a28aa492c44742a00c2 (patch) | |
tree | 5f7fe2aac107b3ac7de99f6fc361380018965209 /libmm-glib/mm-common-helpers.h | |
parent | c250fa3797b40f70cbac1d9e417b1d3ad946ee89 (diff) |
libmm-glib: only allow including `libmm-glib.h' directly
Unless when compiling libmm-glib itself, of course.
Diffstat (limited to 'libmm-glib/mm-common-helpers.h')
-rw-r--r-- | libmm-glib/mm-common-helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-glib/mm-common-helpers.h b/libmm-glib/mm-common-helpers.h index 3d5657d8..eb631048 100644 --- a/libmm-glib/mm-common-helpers.h +++ b/libmm-glib/mm-common-helpers.h @@ -18,6 +18,10 @@ #include <glib.h> #include <ModemManager-enums.h> +#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION) +#error "Only <libmm-glib.h> can be included directly." +#endif + #ifndef MM_COMMON_HELPERS_H #define MM_COMMON_HELPERS_H |