lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / self-component-port-output.h
index da54390c43a79951f85f4680702353cca8c2c5f4..8e13d7d1868e6a8a6b3cc85dc74f7e09df734d56 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_PORT_OUTPUT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_PORT_OUTPUT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_OUTPUT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_OUTPUT_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_port_output, bt_self_component_port,
  * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST
@@ -52,4 +56,4 @@ const bt_port_output *bt_self_component_port_output_as_port_output(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_PORT_OUTPUT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_OUTPUT_H */
This page took 0.023472 seconds and 4 git commands to generate.