lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / component-class-source-const.h
index 06419eb24326181628bce391c5e495eb496560fa..42181ce6516569dba5a32b41626743087e797745 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H
-#define BABELTRACE_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H
+#ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H
+#define BABELTRACE2_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 /*
  * For bt_component_class, bt_component_class_source,
  * __BT_UPCAST_CONST
@@ -65,4 +69,4 @@ extern void bt_component_class_source_put_ref(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_CLASS_SOURCE_CONST_H */
This page took 0.023044 seconds and 4 git commands to generate.