lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / error-cause-const.h
index 472d53793f034164ae4b58b5eeb5dff9f25fae10..8b4e36e06d8601df81f25d617a1c7e0f87cf544f 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_ERROR_CAUSE_CONST_H
-#define BABELTRACE_ERROR_CAUSE_CONST_H
+#ifndef BABELTRACE2_ERROR_CAUSE_CONST_H
+#define BABELTRACE2_ERROR_CAUSE_CONST_H
 
 /*
  * Copyright (c) 2019 Philippe Proulx <pproulx@efficios.com>
  * SOFTWARE.
  */
 
+#ifndef __BT_IN_BABELTRACE_H
+# error "Please include <babeltrace2/babeltrace.h> instead."
+#endif
+
 #include <stdint.h>
 #include <stddef.h>
 
@@ -113,4 +117,4 @@ const char *bt_error_cause_message_iterator_actor_get_plugin_name(
 }
 #endif
 
-#endif /* BABELTRACE_ERROR_CAUSE_CONST_H */
+#endif /* BABELTRACE2_ERROR_CAUSE_CONST_H */
This page took 0.024529 seconds and 4 git commands to generate.