17 lines
426 B
Diff
17 lines
426 B
Diff
diff --git a/libcutils/include/cutils/trace.h b/libcutils/include/cutils/trace.h
|
|
index fcbdc9b..4281375 100644
|
|
--- a/libcutils/include/cutils/trace.h
|
|
+++ b/libcutils/include/cutils/trace.h
|
|
@@ -18,7 +18,12 @@
|
|
#define _LIBS_CUTILS_TRACE_H
|
|
|
|
#include <inttypes.h>
|
|
+#ifdef __cplusplus
|
|
+#include <atomic>
|
|
+using namespace std;
|
|
+#else
|
|
#include <stdatomic.h>
|
|
+#endif
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|