From: Alan Coopersmith Subject: [PATCH:libdrm] Make drm/drm_fourcc.h portable to non-linux platforms Date: Thu, 2 Feb 2012 17:52:39 -0800 Message-ID: <1328233959-24616-1-git-send-email-alan.coopersmith@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by gabe.freedesktop.org (Postfix) with ESMTP id D2DCB9EC1D for ; Thu, 2 Feb 2012 17:52:46 -0800 (PST) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q131qjtw008476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 3 Feb 2012 01:52:45 GMT Received: from jurassic.us.oracle.com (jurassic.us.oracle.com [10.134.8.80]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q131qiPV017899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 3 Feb 2012 01:52:44 GMT Received: from also.us.oracle.com (also.us.oracle.com [10.132.136.78]) by jurassic.us.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id q131qhNW130703 for ; Thu, 2 Feb 2012 17:52:43 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Signed-off-by: Alan Coopersmith --- 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 b1107cb..85facb0 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 +#include -#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 */ -- 1.7.3.2