History

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

Emil Velikov committed 10 years ago

Commit 8daf6351 parent a62424e1 file · +8 −0Browse files

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

Unified · Split

include/uapi/drm/nouveau_drm.h+8−0
@@ -29,6 +29,10 @@ · 28 unmodified lines
2929
3030 #include <drm/drm.h>
3131
32+#if defined(__cplusplus)
33+extern "C" {
34+#endif
35+
3236 #define NOUVEAU_GEM_DOMAIN_CPU (1 << 0)
3337 #define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1)
3438 #define NOUVEAU_GEM_DOMAIN_GART (1 << 2)
@@ -141,4 +145,8 @@ struct drm_nouveau_gem_cpu_fini { · 106 unmodified lines
141145 #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini)
142146 #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info)
143147
148+#if defined(__cplusplus)
149+}
150+#endif
151+
144152 #endif /* __NOUVEAU_DRM_H__ */