From 649c1162920d3daf5b0ccff4979da1f269a48210 Mon Sep 17 00:00:00 2001 From: "Sangjin.Lee" Date: Mon, 19 Feb 2018 20:11:45 +0900 Subject: [PATCH] sync: support c++ Change-Id: If3c38c377f87f27588a3e6b825854ff8dcd43126 --- src/tbm_sync.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tbm_sync.h b/src/tbm_sync.h index 013cffd..c391d5d 100644 --- a/src/tbm_sync.h +++ b/src/tbm_sync.h @@ -3,6 +3,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Create timeline object. * @return file descriptor for the created timeline on success, -1 otherwise @@ -47,4 +51,8 @@ int tbm_sync_fence_wait(tbm_fd fence, int timeout); */ tbm_fd tbm_sync_fence_merge(const char *name, tbm_fd fence1, tbm_fd fence2); +#ifdef __cplusplus +} +#endif + #endif /* _TBM_SYNC_H */ -- 2.7.4