lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / port-output-const.h
index 9de1711c41e3760e13e0863350d6e534d02b7fe3..b923691adffde85f52f18409e4f5b74e541f4fff 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_PORT_OUTPUT_CONST_H
-#define BABELTRACE_GRAPH_PORT_OUTPUT_CONST_H
+#ifndef BABELTRACE2_GRAPH_PORT_OUTPUT_CONST_H
+#define BABELTRACE2_GRAPH_PORT_OUTPUT_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_port, bt_port_output, __BT_UPCAST_CONST */
 #include <babeltrace2/types.h>
 
@@ -60,4 +64,4 @@ extern void bt_port_output_put_ref(const bt_port_output *port_output);
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_PORT_OUTPUT_CONST_H */
+#endif /* BABELTRACE2_GRAPH_PORT_OUTPUT_CONST_H */
This page took 0.023125 seconds and 4 git commands to generate.