From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCHv2] headers: typeof -> __typeof__ to unbreak C++11 code Date: Mon, 09 Mar 2015 17:38:22 +0100 Message-ID: <1696132.Xgpkj7r3Jx@xps13> References: <20150225142851.55406347@miho> <1425657587-23516-1-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Konstantin Ananyev Return-path: In-Reply-To: <1425657587-23516-1-git-send-email-konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 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" 2015-03-06 15:59, Konstantin Ananyev: > v2: > Instead of changing all the affected files, > define 'typeofi' and 'asm' if needed. > > 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). > > There are some typeof()s left in C files, the patch only touches the > public API. > > Signed-off-by: Simon Kagstrom > Signed-off-by: Konstantin Ananyev Applied, thanks