aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/drm/via_drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/drm/via_drm.h')
-rw-r--r--original/uapi/drm/via_drm.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/original/uapi/drm/via_drm.h b/original/uapi/drm/via_drm.h
index 45bc80c..a1e125d 100644
--- a/original/uapi/drm/via_drm.h
+++ b/original/uapi/drm/via_drm.h
@@ -24,7 +24,11 @@
#ifndef _VIA_DRM_H_
#define _VIA_DRM_H_
-#include <drm/drm.h>
+#include "drm.h"
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
/* WARNING: These defines must be the same as what the Xserver uses.
* if you change them, you must change the defines in the Xserver.
@@ -33,9 +37,6 @@
#ifndef _VIA_DEFINES_
#define _VIA_DEFINES_
-#ifndef __KERNEL__
-#include "via_drmclient.h"
-#endif
#define VIA_NR_SAREA_CLIPRECTS 8
#define VIA_NR_XVMC_PORTS 10
@@ -274,4 +275,8 @@ typedef struct drm_via_dmablit {
drm_via_blitsync_t sync;
} drm_via_dmablit_t;
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _VIA_DRM_H_ */