lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / trace-ir / packet-const.h
index 948a061ab86fd8550851e4591a128568b1f5c218..5390a165f5862229d76b7dfeff23533507ef0349 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_TRACE_IR_PACKET_CONST_H
-#define BABELTRACE_TRACE_IR_PACKET_CONST_H
+#ifndef BABELTRACE2_TRACE_IR_PACKET_CONST_H
+#define BABELTRACE2_TRACE_IR_PACKET_CONST_H
 
 /*
  * Copyright 2016-2018 Philippe Proulx <pproulx@efficios.com>
  * http://www.efficios.com/ctf
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /* For bt_property_availability */
@@ -68,4 +72,4 @@ extern void bt_packet_put_ref(const bt_packet *packet);
 }
 #endif
 
-#endif /* BABELTRACE_TRACE_IR_PACKET_CONST_H */
+#endif /* BABELTRACE2_TRACE_IR_PACKET_CONST_H */
This page took 0.024203 seconds and 4 git commands to generate.