OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5d8a9c
)
kms: Make libkms.h usable in C++
author
Laurent Pinchart
<laurent.pinchart@ideasonboard.com>
Thu, 1 Nov 2012 09:40:30 +0000
(09:40 +0000)
committer
Jerome Glisse
<jglisse@redhat.com>
Thu, 18 Apr 2013 14:05:53 +0000
(10:05 -0400)
Wrap the header in extern "C" { ... };.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
libkms/libkms.h
patch
|
blob
|
history
diff --git
a/libkms/libkms.h
b/libkms/libkms.h
index
4664442
..
c00b159
100644
(file)
--- 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