lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / logging.h
index 172f123171a8edd13f953d5cbb4879679300b31b..ea6eadab6fe95a973cf8d2dd67794907037684e2 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_LOGGING_H
-#define BABELTRACE_LOGGING_H
+#ifndef BABELTRACE2_LOGGING_H
+#define BABELTRACE2_LOGGING_H
 
 /*
  * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 #include <stdbool.h>
 #include <stddef.h>
@@ -146,4 +150,4 @@ extern void bt_logging_set_global_level(bt_logging_level log_level);
 }
 #endif
 
-#endif /* BABELTRACE_LOGGING_H */
+#endif /* BABELTRACE2_LOGGING_H */
This page took 0.024811 seconds and 4 git commands to generate.