History

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

Emil Velikov committed 10 years ago

Commit cfa71521 parent 95306971 file · +8 −0Browse files

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

Unified · Split

include/uapi/drm/amdgpu_drm.h+8−0
@@ -34,6 +34,10 @@ · 33 unmodified lines
3434
3535 #include "drm.h"
3636
37+#if defined(__cplusplus)
38+extern "C" {
39+#endif
40+
3741 #define DRM_AMDGPU_GEM_CREATE 0x00
3842 #define DRM_AMDGPU_GEM_MMAP 0x01
3943 #define DRM_AMDGPU_CTX 0x02
@@ -642,4 +646,8 @@ struct drm_amdgpu_info_hw_ip { · 602 unmodified lines
642646 #define AMDGPU_FAMILY_VI 130 /* Iceland, Tonga */
643647 #define AMDGPU_FAMILY_CZ 135 /* Carrizo, Stoney */
644648
649+#if defined(__cplusplus)
650+}
651+#endif
652+
645653 #endif