Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>

+8
+8
include/uapi/drm/mga_drm.h
··· 37 37 38 38 #include "drm.h" 39 39 40 + #if defined(__cplusplus) 41 + extern "C" { 42 + #endif 43 + 40 44 /* WARNING: If you change any of these defines, make sure to change the 41 45 * defines in the Xserver file (mga_sarea.h) 42 46 */ ··· 419 415 int param; 420 416 void __user *value; 421 417 } drm_mga_getparam_t; 418 + 419 + #if defined(__cplusplus) 420 + } 421 + #endif 422 422 423 423 #endif