diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-11-01 09:40:30 +0000 |
---|---|---|
committer | Jerome Glisse <jglisse@redhat.com> | 2013-04-18 10:05:53 -0400 |
commit | 9fa4a4b1a894fa8fffe2075bc3376b7fa5e18104 (patch) | |
tree | 35e0319634ed74a814b5ab72ad742faa71fe58cb | |
parent | e5d8a9c1d6375feb74feb52f419a025f1abf94d1 (diff) |
kms: Make libkms.h usable in C++
Wrap the header in extern "C" { ... };.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
-rw-r--r-- | libkms/libkms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libkms/libkms.h b/libkms/libkms.h index 46644429..c00b1597 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 |