31 lines
688 B
Diff
31 lines
688 B
Diff
--- third_party/libsync/src/include/sync/sync.h.orig 2020-02-21 07:43:33.748325175 -0500
|
|
+++ third_party/libsync/src/include/sync/sync.h 2020-02-21 07:44:07.288328784 -0500
|
|
@@ -19,12 +19,16 @@
|
|
#ifndef __SYS_CORE_SYNC_H
|
|
#define __SYS_CORE_SYNC_H
|
|
|
|
+#if defined(__GLIBC__)
|
|
#include <sys/cdefs.h>
|
|
+#endif
|
|
#include <stdint.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
-__BEGIN_DECLS
|
|
+#ifdef __cplusplus
|
|
+extern "C" {
|
|
+#endif
|
|
|
|
struct sync_legacy_merge_data {
|
|
int32_t fd2;
|
|
@@ -158,6 +162,8 @@
|
|
struct sync_pt_info *itr);
|
|
void sync_fence_info_free(struct sync_fence_info_data *info);
|
|
|
|
-__END_DECLS
|
|
+#ifdef __cplusplus
|
|
+}
|
|
+#endif
|
|
|
|
#endif /* __SYS_CORE_SYNC_H */
|