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:
Aleix Pol 2020-07-22 19:13:18 +02:00
parent 4c267c261e
commit 57e19874b7

View file

@ -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" {