History

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

Emil Velikov committed 10 years ago

Commit c56e0461 parent b1c1f5c1 file · +8 −0Browse files

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

Unified · Split

include/uapi/drm/mga_drm.h+8−0
@@ -37,6 +37,10 @@ · 36 unmodified lines
3737
3838 #include "drm.h"
3939
40+#if defined(__cplusplus)
41+extern "C" {
42+#endif
43+
4044 /* WARNING: If you change any of these defines, make sure to change the
4145 * defines in the Xserver file (mga_sarea.h)
4246 */
@@ -416,4 +420,8 @@ typedef struct drm_mga_getparam { · 373 unmodified lines
416420 void __user *value;
417421 } drm_mga_getparam_t;
418422
423+#if defined(__cplusplus)
424+}
425+#endif
426+
419427 #endif