From 433fdea6d4107dcbe7848a28aa492c44742a00c2 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 3 Oct 2012 13:01:25 +0200 Subject: libmm-glib: only allow including `libmm-glib.h' directly Unless when compiling libmm-glib itself, of course. --- libmm-glib/mm-network-timezone.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmm-glib/mm-network-timezone.h') diff --git a/libmm-glib/mm-network-timezone.h b/libmm-glib/mm-network-timezone.h index 2c27fe00..42a1bc69 100644 --- a/libmm-glib/mm-network-timezone.h +++ b/libmm-glib/mm-network-timezone.h @@ -16,6 +16,10 @@ #ifndef MM_NETWORK_TIMEZONE_H #define MM_NETWORK_TIMEZONE_H +#if !defined (__LIBMM_GLIB_H_INSIDE__) && !defined (LIBMM_GLIB_COMPILATION) +#error "Only can be included directly." +#endif + #include #include -- cgit v1.2.3-70-g09d2