summaryrefslogtreecommitdiff
path: root/src/hb-buffer.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-04-12 13:17:44 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-04-12 13:17:44 -0400
commitd1c9eb458c843215da8df84b596bfae51fee135b (patch)
treec819b3de06b7bf0c1ff43a13072d97d98203ba4a /src/hb-buffer.h
parent323190c27b80cddc9b3c42d19f1f243e2acb2411 (diff)
Make it an error to include non-top-level headers
Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but never things like hb-shape.h directly. This makes it easier to refactor headers later on without breaking compatibility.
Diffstat (limited to 'src/hb-buffer.h')
-rw-r--r--src/hb-buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
index 9582ebee..ca1bbf47 100644
--- a/src/hb-buffer.h
+++ b/src/hb-buffer.h
@@ -27,6 +27,10 @@
* Google Author(s): Behdad Esfahbod
*/
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
#ifndef HB_BUFFER_H
#define HB_BUFFER_H