mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 12:10:18 +01:00
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>
This commit is contained in:
parent
e5d8a9c1d6
commit
9fa4a4b1a8
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue