History

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

Emil Velikov committed 10 years ago

Commit b6c2b641 parent 6a982351 file · +8 −0Browse files

Unified · Split

include/uapi/drm/via_drm.h+8−0
@@ -26,6 +26,10 @@ · 25 unmodified lines
2626
2727 #include "drm.h"
2828
29+#if defined(__cplusplus)
30+extern "C" {
31+#endif
32+
2933 /* WARNING: These defines must be the same as what the Xserver uses.
3034 * if you change them, you must change the defines in the Xserver.
3135 */
@@ -271,4 +275,8 @@ typedef struct drm_via_dmablit { · 239 unmodified lines
271275 drm_via_blitsync_t sync;
272276 } drm_via_dmablit_t;
273277
278+#if defined(__cplusplus)
279+}
280+#endif
281+
274282 #endif /* _VIA_DRM_H_ */