[PATCH] drm: Fix drm.h uapi header for Windows

Simon Ser contact at emersion.fr
Mon Dec 7 09:48:50 UTC 2020


On Monday, December 7th, 2020 at 9:57 AM, James Park <james.park at lagfreegames.com> wrote:

> I could adjust the block to look like this:
>
> #ifdef DRM_FOURCC_STANDALONE
> #if defined(__linux__)
> #include <linux/types.h>
> #else
> #include <stdint.h>
> typedef uint32_t __u32;
> typedef uint64_t __u64;
> #endif
> #else
> #include "drm.h"
> #endif

This approach still breaks on BSDs when DRM_FOURCC_STANDALONE is defined and
drm.h is included afterwards.


More information about the dri-devel mailing list