From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F719C4361A for ; Fri, 4 Dec 2020 08:53:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A8A9227BF for ; Fri, 4 Dec 2020 08:53:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A8A9227BF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7592D6E139; Fri, 4 Dec 2020 08:53:40 +0000 (UTC) Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id D565C6E139 for ; Fri, 4 Dec 2020 08:53:38 +0000 (UTC) Date: Fri, 04 Dec 2020 08:53:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1607072016; bh=mJf4cIgQmqKdvH7aMIlrcgYR5DwsLltw/FDe1W8yzi8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=J8BNK/cjDm8Qes1h8OFO2qQ7A2QmYEtQg4EhtMyAQklCw4hgUbewluwxEC8w8Ps8o uEwnFrBsMjjQqIIEFW0FnntPoiCTe3BbWWHISjzhCJ5FMrgv31du1xrVq4mrlOBwB9 U5d3V0lCFjjSsIvA9QOPDzCAqF16I6WYTGCpZxwH9nbr6ACHyWnqkTt8sm2JgHQO5P F5lTCpJecsDEynrHDpTYudZMe7qpOXNagYG4euOv8q2dZ9fEzh9u58jIqd5GQfOdIo CyiwZCSorqWRW5n+iF4pzLglCUIsaB+QpALJLk51tQlAXy37lLPMJM5zMT4n6qvYni dkGpRo0ykHurA== To: James Park From: Simon Ser Subject: Re: [PATCH] drm: Allow drm_fourcc.h without including drm.h Message-ID: In-Reply-To: <1607057617-145-2-git-send-email-jpark37@lagfreegames.com> References: <1607057617-145-1-git-send-email-jpark37@lagfreegames.com> <1607057617-145-2-git-send-email-jpark37@lagfreegames.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Cc: "dri-devel@lists.freedesktop.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Friday, December 4, 2020 5:53 AM, James Park wrote: > +#ifdef DRM_FOURCC_STANDALONE > +#include > > +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. _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel