lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / graph / message-discarded-events.h
index a21836329edafa61b5fb907e27af95d8968c66fa..b2b97d6fa49bfa29982f6f5eadb492b5db431e40 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_GRAPH_MESSAGE_DISCARDED_EVENTS_H
-#define BABELTRACE_GRAPH_MESSAGE_DISCARDED_EVENTS_H
+#ifndef BABELTRACE2_GRAPH_MESSAGE_DISCARDED_EVENTS_H
+#define BABELTRACE2_GRAPH_MESSAGE_DISCARDED_EVENTS_H
 
 /*
  * Copyright 2019 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 /* For bt_message, bt_self_message_iterator, bt_stream */
@@ -51,4 +55,4 @@ extern void bt_message_discarded_events_set_count(bt_message *message,
 }
 #endif
 
-#endif /* BABELTRACE_GRAPH_MESSAGE_DISCARDED_EVENTS_H */
+#endif /* BABELTRACE2_GRAPH_MESSAGE_DISCARDED_EVENTS_H */
This page took 0.02316 seconds and 4 git commands to generate.