summaryrefslogtreecommitdiff
path: root/libpurple/pluginpref.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/pluginpref.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/pluginpref.h')
-rw-r--r--libpurple/pluginpref.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/pluginpref.h b/libpurple/pluginpref.h
index b923d4ce39..b2c131a178 100644
--- a/libpurple/pluginpref.h
+++ b/libpurple/pluginpref.h
@@ -20,6 +20,10 @@
*
*/
+#if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
+# error "only <purple.h> may be included directly"
+#endif
+
#ifndef PURPLE_PLUGINPREF_H
#define PURPLE_PLUGINPREF_H
/**