lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / connection-const.h
index facef9724b8db924e718977cc27491e8e0bb000c..9f1f2a8738062a4b7f689c0587676133af9949f3 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_CONNECTION_CONST_H
-#define BABELTRACE_GRAPH_CONNECTION_CONST_H
+#ifndef BABELTRACE2_GRAPH_CONNECTION_CONST_H
+#define BABELTRACE2_GRAPH_CONNECTION_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_bool, bt_port_input, bt_port_output, bt_connection */
 #include <babeltrace2/types.h>
 
@@ -58,4 +62,4 @@ extern void bt_connection_put_ref(const bt_connection *connection);
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_CONNECTION_CONST_H */
+#endif /* BABELTRACE2_GRAPH_CONNECTION_CONST_H */
This page took 0.023466 seconds and 4 git commands to generate.