lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / trace-ir / event-const.h
index 32e049427f123b5bd20525056da45be4e01435f9..ff8c07108c864d396b39f1c0154102b98c3ed2ad 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_TRACE_IR_EVENT_CONST_H
-#define BABELTRACE_TRACE_IR_EVENT_CONST_H
+#ifndef BABELTRACE2_TRACE_IR_EVENT_CONST_H
+#define BABELTRACE2_TRACE_IR_EVENT_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_event, bt_event_class, bt_field, bt_packet */
 #include <babeltrace2/types.h>
 
@@ -56,4 +60,4 @@ extern const bt_field *bt_event_borrow_payload_field_const(
 }
 #endif
 
-#endif /* BABELTRACE_TRACE_IR_EVENT_CONST_H */
+#endif /* BABELTRACE2_TRACE_IR_EVENT_CONST_H */
This page took 0.028058 seconds and 4 git commands to generate.