xf86drmMode.h: Add header protection

xf86drmMode.h is missing a header protection. xf86drm.h has one so just
copy it and adjust the name.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
main
David Herrman 2012-03-09 13:40:14 -05:00 committed by Adam Jackson
parent f82c778703
commit fd39e61d0e
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,9 @@
* *
*/ */
#ifndef _XF86DRMMODE_H_
#define _XF86DRMMODE_H_
#if defined(__cplusplus) || defined(c_plusplus) #if defined(__cplusplus) || defined(c_plusplus)
extern "C" { extern "C" {
#endif #endif
@ -428,3 +431,5 @@ extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
#if defined(__cplusplus) || defined(c_plusplus) #if defined(__cplusplus) || defined(c_plusplus)
} }
#endif #endif
#endif