From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id 65EAB5696 for ; Thu, 26 Feb 2015 12:15:16 +0100 (CET) Received: by wesw55 with SMTP id w55so9583975wes.5 for ; Thu, 26 Feb 2015 03:15:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=c3JgIcUYo2+WC4uBwmHAtNo/gmthH/CsMVPiqLlyeJU=; b=O4k3jzIwo63VqHE7SeXM34HwTqafD8eLjNVfSB+qF1ip8TsbLTy3ZyGB3ZwLGepN1N aCL4RKav2Nr7QH/8eLZ40fDlnk5IHqgrcBX2sxpyIvaJBLtu5lWQh20Dd1+cG1g7xsiq FpYNofde8MmuCUOIWEDtZK43sT6awWZy9mLrSSd2nuNNBs2ZM5TDt/wrut4gDzovH/Oy 6ComxkaAVDTWXEZ6MtetFvm1M9chdDi5mrmAmkOV57QgMlhfag7Ntyblg6DpPkP6DGsH F63jv7J5QLtK1ud0yataQxIF46T102qd9hK9n5W6Ktq1Dykdyoz3JdZP0doJ9FEQQmdv 3F0A== X-Gm-Message-State: ALoCoQmu4QRZfHB93Z2QOZ+f8dXWBDmNVN8/oFfHQDnMAUtobU0/mkBPfBAZ/pJDGDFWR6dHYd7Z X-Received: by 10.180.189.203 with SMTP id gk11mr15368730wic.32.1424949316237; Thu, 26 Feb 2015 03:15:16 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id dn7sm18024533wid.12.2015.02.26.03.15.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 03:15:14 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org, Simon Kagstrom Date: Thu, 26 Feb 2015 12:14:39 +0100 Message-ID: <1976981.gNbPL03jx1@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <20150225142851.55406347@miho> References: <20150225142851.55406347@miho> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 11:15:16 -0000 Hi Simon, 2015-02-25 14:28, Simon Kagstrom: > When compiling C++11-code or above (--std=c++11), the build fails with > lots of > > rte_eth_ctrl.h:517:3: note: in expansion of macro RTE_ALIGN > (RTE_ALIGN(RTE_ETH_FLOW_MAX, UINT32_BIT)/UINT32_BIT) > ^ > > When reading the GCC info pages, I get the feeling that __typeof__ is > a better choice, and that indeed works when including the headers in > C++ files (--std=c++11). I'd like to be sure that it's working with every compilers we support (gcc, icc, clang). Anyone to check please?