diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-02-02 17:51:24 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-03-05 19:07:02 -0800 |
commit | f82c77870354ba736774b6c45ccf8a326732243a (patch) | |
tree | b1c4614ef1c313b830f9d01c59bca078b678bff0 | |
parent | be30d350b64c1a83473a9ffbedf8e2c680a65fcd (diff) |
Make drm/drm_fourcc.h portable to non-linux platforms
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | include/drm/drm_fourcc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h index b1107cb10433..85facb0a17cf 100644 --- a/include/drm/drm_fourcc.h +++ b/include/drm/drm_fourcc.h @@ -24,10 +24,10 @@ #ifndef DRM_FOURCC_H #define DRM_FOURCC_H -#include <linux/types.h> +#include <inttypes.h> -#define fourcc_code(a,b,c,d) ((__u32)(a) | ((__u32)(b) << 8) | \ - ((__u32)(c) << 16) | ((__u32)(d) << 24)) +#define fourcc_code(a,b,c,d) ((uint32_t)(a) | ((uint32_t)(b) << 8) | \ + ((uint32_t)(c) << 16) | ((uint32_t)(d) << 24)) #define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */ |