[tepl] MetadataStore: check that only <tepl/tepl.h> can be included directly



commit b5486ce2d688270a4665a809cbc675dea9bd29a4
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Apr 15 19:54:37 2020 +0200

    MetadataStore: check that only <tepl/tepl.h> can be included directly

 tepl/tepl-metadata-store.h | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tepl/tepl-metadata-store.h b/tepl/tepl-metadata-store.h
index 0bed587..f5dc97c 100644
--- a/tepl/tepl-metadata-store.h
+++ b/tepl/tepl-metadata-store.h
@@ -20,6 +20,10 @@
 #ifndef TEPL_METADATA_STORE_H
 #define TEPL_METADATA_STORE_H
 
+#if !defined (TEPL_H_INSIDE) && !defined (TEPL_COMPILATION)
+#error "Only <tepl/tepl.h> can be included directly."
+#endif
+
 #include <gio/gio.h>
 
 G_BEGIN_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]