diff mbox

kms: Make libkms.h usable in C++

Message ID 1351762830-8098-1-git-send-email-laurent.pinchart@ideasonboard.com (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Pinchart Nov. 1, 2012, 9:40 a.m. UTC
Wrap the header in extern "C" { ... };.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 libkms/libkms.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Comments

Jakob Bornecrantz Nov. 2, 2012, 12:16 p.m. UTC | #1
On Thu, Nov 1, 2012 at 10:40 AM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> Wrap the header in extern "C" { ... };.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
diff mbox

Patch

diff --git a/libkms/libkms.h b/libkms/libkms.h
index 4664442..c00b159 100644
--- a/libkms/libkms.h
+++ b/libkms/libkms.h
@@ -29,6 +29,10 @@ 
 #ifndef _LIBKMS_H_
 #define _LIBKMS_H_
 
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
 /**
  * \file
  *
@@ -71,4 +75,8 @@  int kms_bo_map(struct kms_bo *bo, void **out);
 int kms_bo_unmap(struct kms_bo *bo);
 int kms_bo_destroy(struct kms_bo **bo);
 
+#if defined(__cplusplus) || defined(c_plusplus)
+};
+#endif
+
 #endif