mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
Changes: https://android.googlesource.com/platform/system/core/+log/android-9.0.0_r3..platform-tools-29.0.2/adb
17 lines
401 B
C++
17 lines
401 B
C++
--- libcutils/include/cutils/trace.h.orig 2019-07-17 19:54:09 UTC
|
|
+++ libcutils/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>
|