blob: df785a1e3bd23a633d76e531665d9b2824fb64cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- include/cutils/trace.h.orig 2017-06-20 10:50:27 UTC
+++ include/cutils/trace.h
@@ -18,8 +18,14 @@
#define _LIBS_CUTILS_TRACE_H
#include <inttypes.h>
+#ifdef __cplusplus
+#include <atomic>
+using std::atomic_bool;
+using std::memory_order_acquire;
+#else
#include <stdatomic.h>
#include <stdbool.h>
+#endif
#include <stdint.h>
#include <stdio.h>
#include <sys/cdefs.h>
|