[PATCH] drm: Allow drm_fourcc.h without including drm.h

Simon Ser contact at emersion.fr
Fri Dec 4 08:53:29 UTC 2020


On Friday, December 4, 2020 5:53 AM, James Park <jpark37 at lagfreegames.com> wrote:

> +#ifdef DRM_FOURCC_STANDALONE
> +#include <stdint.h>
>
> +typedef uint32_t __u32;
> +typedef uint64_t __u64;
> +#else
> #include "drm.h"
> +#endif

C11 allows duplicate typedefs, but older versions of the standard
don't AFAIK. If this is a concern, a solution would be to guard the
typedefs.


More information about the dri-devel mailing list