projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c77c3
)
exynos: add C++ support to exynos_drmif header
author
Tobias Jakobi
<tjakobi@math.uni-bielefeld.de>
Wed, 5 Apr 2017 14:22:24 +0000
(16:22 +0200)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Sat, 8 Apr 2017 20:33:30 +0000
(21:33 +0100)
Add the usual extern "C" when compiling in C++ mode.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
exynos/exynos_drmif.h
patch
|
blob
|
history
diff --git
a/exynos/exynos_drmif.h
b/exynos/exynos_drmif.h
index
626e399
..
154439b
100644
(file)
--- a/
exynos/exynos_drmif.h
+++ b/
exynos/exynos_drmif.h
@@
-31,6
+31,10
@@
#include <stdint.h>
#include "exynos_drm.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
struct exynos_device {
int fd;
};
@@
-109,4
+113,8
@@
int exynos_handle_event(struct exynos_device *dev,
struct exynos_event_context *ctx);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* EXYNOS_DRMIF_H_ */