lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / self-component-port-input.h
index d34b9458e5fa5db0f44d5b41bebbc2fa8424caf5..29bde50d7b2896df84c9f12d791a6add486f9a04 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_PORT_INPUT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_PORT_INPUT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_INPUT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_INPUT_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_input, bt_self_component_port,
  * bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST
@@ -52,4 +56,4 @@ const bt_port_input *bt_self_component_port_input_as_port_input(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_PORT_INPUT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_INPUT_H */
This page took 0.02348 seconds and 4 git commands to generate.