*/
#define __BT_IN_BABELTRACE_H
-/* Property enumeration */
-%include <babeltrace2/property.h>
+/*
+ * Define `__BT_ATTR_FORMAT_PRINTF` to nothing, otherwise SWIG fails to parse
+ * the included header files that use it.
+ */
+#define __BT_ATTR_FORMAT_PRINTF(_string_index, _first_to_check)
+
+/* Common types */
+%include <babeltrace2/types.h>
/* Common function status codes */
%include <babeltrace2/func-status.h>
%include "native_bt_trace_class.i"
%include "native_bt_value.i"
%include "native_bt_version.i"
+
+%{
+
+/*
+ * This function is defined by SWIG. Declare here to avoid a
+ * -Wmissing-prototypes warning.
+ */
+PyObject *SWIG_init(void);
+
+%}