History

drm/tegra: add extern C guard for the UAPI header

Emil Velikov committed 10 years ago

Commit 7aa8cee1 parent 81dda381 file · +8 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/tegra_drm.h+8−0
@@ -25,6 +25,10 @@ · 24 unmodified lines
2525
2626 #include "drm.h"
2727
28+#if defined(__cplusplus)
29+extern "C" {
30+#endif
31+
2832 #define DRM_TEGRA_GEM_CREATE_TILED (1 << 0)
2933 #define DRM_TEGRA_GEM_CREATE_BOTTOM_UP (1 << 1)
3034
@@ -198,4 +202,8 @@ struct drm_tegra_gem_get_flags { · 167 unmodified lines
198202 #define DRM_IOCTL_TEGRA_GEM_SET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_SET_FLAGS, struct drm_tegra_gem_set_flags)
199203 #define DRM_IOCTL_TEGRA_GEM_GET_FLAGS DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GEM_GET_FLAGS, struct drm_tegra_gem_get_flags)
200204
205+#if defined(__cplusplus)
206+}
207+#endif
208+
201209 #endif