sync: support c++ 72/170372/1
authorSangjin.Lee <lsj119@samsung.com>
Mon, 19 Feb 2018 11:11:45 +0000 (20:11 +0900)
committerSangjin.Lee <lsj119@samsung.com>
Mon, 19 Feb 2018 11:11:45 +0000 (20:11 +0900)
Change-Id: If3c38c377f87f27588a3e6b825854ff8dcd43126

src/tbm_sync.h

index 013cffd..c391d5d 100644 (file)
@@ -3,6 +3,10 @@
 
 #include <tbm_bufmgr.h>
 
+#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 */