Commit 57e19874 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

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.
parent 4c267c26
......@@ -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" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment