summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be30d35)
raw | patch | inline | side by side (parent: be30d35)
author | Alan Coopersmith <alan.coopersmith@oracle.com> | |
Fri, 3 Feb 2012 01:51:24 +0000 (17:51 -0800) | ||
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | |
Tue, 6 Mar 2012 03:07:02 +0000 (19:07 -0800) |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
include/drm/drm_fourcc.h | patch | blob | history |
index b1107cb104331eb366c17a9e933564a1015fcefd..85facb0a17cf3663ceeba759879cbda75b3aa1a8 100644 (file)
--- a/include/drm/drm_fourcc.h
+++ b/include/drm/drm_fourcc.h
#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 */