#ifndef _BABELTRACE_INTERNAL_H
#define _BABELTRACE_INTERNAL_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+#define BT_EXTERN_C extern "C"
+#else
+#define BT_EXTERN_C
+#endif
+
#define bt_max_t(type, a, b) \
((type) (a) > (type) (b) ? (type) (a) : (type) (b))
#define BT_MOVE_REF(ref) \
({ \
- typeof(ref) _ref = ref; \
+ __typeof__(ref) _ref = ref; \
ref = NULL; \
_ref; \
})
((void) sizeof((void) (_expr1), (void) (_expr2), \
(void) (_expr3), (void) (_expr4), (void) (_expr5), 0))
+#ifdef __cplusplus
+}
+#endif
+
#endif