From: Tobias Jakobi Date: Wed, 5 Apr 2017 14:22:24 +0000 (+0200) Subject: exynos: add C++ support to exynos_drmif header X-Git-Tag: libdrm-2.4.80~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47521438eb5c3f01c0bbae79c85ddbe8a5435a98;p=platform%2Fupstream%2Flibdrm.git exynos: add C++ support to exynos_drmif header Add the usual extern "C" when compiling in C++ mode. Signed-off-by: Tobias Jakobi Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/exynos/exynos_drmif.h b/exynos/exynos_drmif.h index 626e399..154439b 100644 --- a/exynos/exynos_drmif.h +++ b/exynos/exynos_drmif.h @@ -31,6 +31,10 @@ #include #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_ */