lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / port-const.h
index adb4622c5f299aa314f4742200a8cc3b58464d28..3ed544265f9754c63f8c061af3382f966eebe4c0 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_PORT_CONST_H
-#define BABELTRACE_GRAPH_PORT_CONST_H
+#ifndef BABELTRACE2_GRAPH_PORT_CONST_H
+#define BABELTRACE2_GRAPH_PORT_CONST_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_bool, bt_port, bt_connection, bt_component */
@@ -83,4 +87,4 @@ extern void bt_port_put_ref(const bt_port *port);
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_PORT_CONST_H */
+#endif /* BABELTRACE2_GRAPH_PORT_CONST_H */
This page took 0.024708 seconds and 4 git commands to generate.