lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / component-sink-const.h
index 223a81320f3e57e911fcffed31cfcba811b2bf97..d6a39254c80fd4f1847087ceb915d940c8aac95a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_COMPONENT_SINK_CONST_H
-#define BABELTRACE_GRAPH_COMPONENT_SINK_CONST_H
+#ifndef BABELTRACE2_GRAPH_COMPONENT_SINK_CONST_H
+#define BABELTRACE2_GRAPH_COMPONENT_SINK_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>
 
 /*
@@ -81,4 +85,4 @@ extern void bt_component_sink_put_ref(
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_COMPONENT_SINK_CONST_H */
+#endif /* BABELTRACE2_GRAPH_COMPONENT_SINK_CONST_H */
This page took 0.024382 seconds and 4 git commands to generate.