aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli2011-09-23 06:17:42 -0500
committerChris Wilson2011-09-23 06:58:56 -0500
commitcfee5218b17a2741e5519ed44091171e01f0dbb2 (patch)
tree13c01740f919b2ef99ecac9bdfc3c4da8e37cfe9 /xf86drm.h
parent194aa1bee632c6dce19238664eb8373e3483de55 (diff)
downloadexternal-libdrm-cfee5218b17a2741e5519ed44091171e01f0dbb2.tar.gz
external-libdrm-cfee5218b17a2741e5519ed44091171e01f0dbb2.tar.xz
external-libdrm-cfee5218b17a2741e5519ed44091171e01f0dbb2.zip
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 <tapani.palli@intel.com> [ickle: also wrap xf86drmMode.h] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 20f4c783..76eb94e2 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -39,6 +39,10 @@
39#include <stdint.h> 39#include <stdint.h>
40#include <drm.h> 40#include <drm.h>
41 41
42#if defined(__cplusplus) || defined(c_plusplus)
43extern "C" {
44#endif
45
42#ifndef DRM_MAX_MINOR 46#ifndef DRM_MAX_MINOR
43#define DRM_MAX_MINOR 16 47#define DRM_MAX_MINOR 16
44#endif 48#endif
@@ -723,4 +727,8 @@ extern int drmHandleEvent(int fd, drmEventContextPtr evctx);
723 727
724extern char *drmGetDeviceNameFromFd(int fd); 728extern char *drmGetDeviceNameFromFd(int fd);
725 729
730#if defined(__cplusplus) || defined(c_plusplus)
731}
732#endif
733
726#endif 734#endif