xf86drm.h : wrap C code for C++ compilation/linking
PATCH 1/1 xf86drm.h : wrap C code for C++ compilation/linking
To enable usage of xf86drm.h from C++ programs/frameworks.
Signed-off-by Tapani Pälli <[email protected]>
--- xf86drm.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
xf86drm.h +8 -0
@@ -39,6 +39,10 @@#include <stdint.h> #include <drm.h> +#ifdef __cplusplus +extern "C" { +#endif +#ifndef DRM_MAX_MINOR #define DRM_MAX_MINOR 16#endif
@@ -723,4 +727,8 @@ extern int drmHandleEvent(int fd, drmEventContextPtr evctx);extern char *drmGetDeviceNameFromFd (int fd); +#ifdef __cplusplus +} +#endif +#endif
Signature · 6 lines
1.7.6.2 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · Tapani Pälli
To enable usage of
xf86drm.hfrom C++ programs/frameworks.Signed-off-by Tapani Pälli <[email protected]>
For completeness, I also wrapped xf86drmMode.h which you may find useful as well. ;-)
Thanks,
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel