From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 2/6] eal: add header files to support windows Date: Wed, 06 Mar 2019 12:31:09 +0100 Message-ID: <2585800.7Z22QRaGj1@xps> References: <20190306041634.12976-1-anand.rawat@intel.com> <20190306041634.12976-3-anand.rawat@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, pallavi.kadam@intel.com, ranjit.menon@intel.com, jeffrey.b.shaw@intel.com To: Anand Rawat Return-path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 7BDC24F90 for ; Wed, 6 Mar 2019 12:31:13 +0100 (CET) In-Reply-To: <20190306041634.12976-3-anand.rawat@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 06/03/2019 05:16, Anand Rawat: > Added header files to support windows on x86 platforms. > Updated rte_config to include rte_windows.h for windows > build. [...] > --- a/config/rte_config.h > +++ b/config/rte_config.h > +/* windows specific*/ > +#ifdef RTE_EXEC_ENV_WINDOWS > +#include > +#endif Include in the config file looks wrong. > --- /dev/null > +++ b/lib/librte_eal/windows/eal/include/exec-env/rte_windows.h I think we could remove the sub-directory exec-env. Could we include this file from rte_common.h? > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2019 Intel Corporation > + */ > + > +#ifndef _RTE_WINDOWS_H_ > +#define _RTE_WINDOWS_H_ > + > +#ifdef __cplusplus > +extern "C" { > +#endif > + > +#define __extension__ > +#define __thread __declspec(thread) > + > +#define strerror_r(a, b, c) strerror_s(b, c, a) > + > +typedef void *ssize_t; > + > +#ifdef __cplusplus > +} > +#endif > + > +#endif /* _RTE_WINDOWS_H_ */ It is missing comments to explain the need of each line.