diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-04-12 13:17:44 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-04-12 13:17:44 -0400 |
commit | d1c9eb458c843215da8df84b596bfae51fee135b (patch) | |
tree | c819b3de06b7bf0c1ff43a13072d97d98203ba4a /src/hb-blob.h | |
parent | 323190c27b80cddc9b3c42d19f1f243e2acb2411 (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-blob.h')
-rw-r--r-- | src/hb-blob.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hb-blob.h b/src/hb-blob.h index 50c9ae3b..360310b4 100644 --- a/src/hb-blob.h +++ b/src/hb-blob.h @@ -24,6 +24,10 @@ * Red Hat Author(s): Behdad Esfahbod */ +#ifndef HB_H_IN +#error "Include <hb.h> instead." +#endif + #ifndef HB_BLOB_H #define HB_BLOB_H |