lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / trace-ir / stream-const.h
index 9a1d236b7d211d8d848ad6d20e6c6f11fe906b0f..61da523d61897c509823ed4166e213ad224ab7c9 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_TRACE_IR_STREAM_CONST_H
-#define BABELTRACE_TRACE_IR_STREAM_CONST_H
+#ifndef BABELTRACE2_TRACE_IR_STREAM_CONST_H
+#define BABELTRACE2_TRACE_IR_STREAM_CONST_H
 
 /*
  * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * http://www.efficios.com/ctf
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 /* For bt_trace, bt_stream, bt_stream_class */
 #include <babeltrace2/types.h>
 
@@ -67,4 +71,4 @@ extern void bt_stream_put_ref(const bt_stream *stream);
 }
 #endif
 
-#endif /* BABELTRACE_TRACE_IR_STREAM_CONST_H */
+#endif /* BABELTRACE2_TRACE_IR_STREAM_CONST_H */
This page took 0.025247 seconds and 4 git commands to generate.