From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] headers: typeof -> __typeof__ to unbreak C++11 code Date: Thu, 26 Feb 2015 12:14:39 +0100 Message-ID: <1976981.gNbPL03jx1@xps13> References: <20150225142851.55406347@miho> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit To: dev-VfR2kkLFssw@public.gmane.org, Simon Kagstrom Return-path: In-Reply-To: <20150225142851.55406347@miho> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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?