lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / util.h
index f251eda909c20cf3c906fa1f3accaf7f4e6b2548..d8878545878402a81b874773c47a430c0437263a 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_UTIL_H
-#define BABELTRACE_UTIL_H
+#ifndef BABELTRACE2_UTIL_H
+#define BABELTRACE2_UTIL_H
 
 /*
  * Copyright (c) 2015-2018 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 
 #ifdef __cplusplus
@@ -42,4 +46,4 @@ bt_util_status bt_util_clock_cycles_to_ns_from_origin(uint64_t cycles,
 }
 #endif
 
-#endif /* BABELTRACE_UTIL_H */
+#endif /* BABELTRACE2_UTIL_H */
This page took 0.025193 seconds and 4 git commands to generate.