lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / self-component-source.h
index 188337bd37d1e0436dab0fdd17486ac4f5a094e2..6dac6f6410a83fad74a01d2ad700461019860fbc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_SOURCE_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_SOURCE_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_SOURCE_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_SOURCE_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /* For bt_self_component_*_status */
@@ -73,4 +77,4 @@ bt_self_component_source_add_output_port(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_SOURCE_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_SOURCE_H */
This page took 0.025553 seconds and 4 git commands to generate.