summaryrefslogtreecommitdiff
path: root/libpurple/contact.h
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2020-06-21 04:16:15 -0500
committerGary Kramlich <grim@reaperworld.com>2020-06-21 04:16:15 -0500
commit431bf1b82af7c6e8ce49c4214dfe6f5b5ee43615 (patch)
tree0fd6704edf87fa3944677b9464c119760efa9fe6 /libpurple/contact.h
parentad0c6f025487a2c14d4c47bd24829c97f288638b (diff)
downloadpidgin-431bf1b82af7c6e8ce49c4214dfe6f5b5ee43615.tar.gz
Make it so only libpurple can directly include libpurple header files.
This is part of our on going effort to make it easier to develop against libpurple as well as making our filenames not part of our api. Make it so only libpurple can directly include libpurple header files. Testing Done: Just a normal compile to make sure everything builds again. Reviewed at https://reviews.imfreedom.org/r/8/
Diffstat (limited to 'libpurple/contact.h')
-rw-r--r--libpurple/contact.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/contact.h b/libpurple/contact.h
index 8afdea1320..81e07f6772 100644
--- a/libpurple/contact.h
+++ b/libpurple/contact.h
@@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
+#if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
+# error "only <purple.h> may be included directly"
+#endif
+
#ifndef PURPLE_CONTACT_H
#define PURPLE_CONTACT_H
/**