summaryrefslogtreecommitdiff
path: root/libpurple/image.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/image.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/image.h')
-rw-r--r--libpurple/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/image.h b/libpurple/image.h
index c65b7f7138..0b6bea1f82 100644
--- a/libpurple/image.h
+++ b/libpurple/image.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_IMAGE_H
#define PURPLE_IMAGE_H