lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / self-component-port.h
index c7f5be9b1cd28a1d10803ec4a6f7d2124c311f39..bd93753d0807d47786020049ebdd433f4a0e8dab 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_SELF_COMPONENT_PORT_H
-#define BABELTRACE_GRAPH_SELF_COMPONENT_PORT_H
+#ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H
+#define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_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, bt_self_component_port, bt_self_component,
  * bt_connection, __BT_UPCAST_CONST
@@ -54,4 +58,4 @@ extern void *bt_self_component_port_get_data(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_SELF_COMPONENT_PORT_H */
+#endif /* BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H */
This page took 0.024382 seconds and 4 git commands to generate.