From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id D9A9A5A9B for ; Mon, 9 Mar 2015 17:38:58 +0100 (CET) Received: by wibbs8 with SMTP id bs8so22599219wib.0 for ; Mon, 09 Mar 2015 09:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=I88W+ZGmnqZqPf2ritcX4SCUi6WFFMuGvChWbPECRqE=; b=FxtLU0wYrE/8uhJ2SgM2WVGW8Djn3JSxFHM5AlGcohWisQocqf/rVelGZM/c0nPUy5 Sw7gq+ItM2+rN8f6fND4n3arnWLzodTRQttgWoo3cwKLWeQQmMttgc6mjYpLYcvPjmDh IJjnyBWKAZG2WrX/FiICfHAH8rnGhNvL/B0Hpc4msXoo5a5JEPap+kD0Yuqp+pA7TvPq F7R1wV6DE0vSZNnqHF/cUDUrDbhMRTKoIuT6dfoTtdJbLZ+NYhwNLdiJhIkXU8/rCsHd ULaTZyD5KYOz3oM0eQ3Ui9EeHg7jG2gZBXHCWoQBUt+Bwub8FrWAjnC29jeRW4zArAkA Jqdw== X-Gm-Message-State: ALoCoQl8aTqxfdLHd4xweOy9t6HLq+qyJrGGLAG7DKxznyeRyjMBsaqU4tzQa6XZC7+39BuHvWaY X-Received: by 10.194.239.65 with SMTP id vq1mr58043665wjc.98.1425919138673; Mon, 09 Mar 2015 09:38:58 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id bd1sm16192559wib.13.2015.03.09.09.38.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 09:38:57 -0700 (PDT) From: Thomas Monjalon To: Konstantin Ananyev Date: Mon, 09 Mar 2015 17:38:22 +0100 Message-ID: <1696132.Xgpkj7r3Jx@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1425657587-23516-1-git-send-email-konstantin.ananyev@intel.com> References: <20150225142851.55406347@miho> <1425657587-23516-1-git-send-email-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCHv2] 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: Mon, 09 Mar 2015 16:38:59 -0000 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