drm_fourcc.h: only typedef uint32_t on the platforms it's needed
On linux we have it defined on some headers. If we do hardcode it ourselves build will fail when linux/types.h is included afterwards.
This commit is contained in:
parent
4c267c261e
commit
57e19874b7
1 changed files with 7 additions and 0 deletions
|
@ -27,8 +27,15 @@
|
|||
//#include "drm.h"
|
||||
|
||||
// These typedefs are copied from drm.h
|
||||
#if defined(__linux__)
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <asm/ioctl.h>
|
||||
|
||||
#else /* One of the BSDs */
|
||||
typedef uint32_t __u32;
|
||||
typedef uint64_t __u64;
|
||||
#endif
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
|
|
Loading…
Reference in a new issue