lib: force user to include `<babeltrace2/babeltrace.h>`
[babeltrace.git] / include / babeltrace2 / error-const.h
index 0aaddb51c6c972ee9fbed9bc432b07545bce8211..bee1b7524443d928902b056bfebaff17eaa4c54d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_ERROR_CONST_H
-#define BABELTRACE_ERROR_CONST_H
+#ifndef BABELTRACE2_ERROR_CONST_H
+#define BABELTRACE2_ERROR_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>
 
@@ -47,4 +51,4 @@ void bt_error_release(const bt_error *error);
 }
 #endif
 
-#endif /* BABELTRACE_ERROR_CONST_H */
+#endif /* BABELTRACE2_ERROR_CONST_H */
This page took 0.030882 seconds and 4 git commands to generate.