From patchwork Mon Jan 8 23:38:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 135806 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A0554386A; Tue, 9 Jan 2024 00:38:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52F05402EF; Tue, 9 Jan 2024 00:38:17 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 47C4E4021F for ; Tue, 9 Jan 2024 00:38:13 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 81CCA20AEC82; Mon, 8 Jan 2024 15:38:12 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 81CCA20AEC82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1704757092; bh=ulc37CN75cyKZOeW/7CaW4k3gTG5mQIbsRnM+nM+Fx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hw2i7YVM/kpXgenQo2qTjRtBfd3GAAbTvFJ2Nx2q3VmWS+CGMdB10W5CNE4b0xRSy qBQ76LSs8yTRKlWcLERVnDyAmivyLp7N/dUI/oI+Ltn01HHQ66kj/9MU2ZQ3ZbvCEM weUrAw0V9xy2V/bJWHKdbDZtWZ1si/kdNiYKtyTM= From: Tyler Retzlaff To: dev@dpdk.org Cc: Dmitry Kozlyuk , Pallavi Kadam , Tyler Retzlaff Subject: [PATCH v4 1/2] windows: include winapifamily header for macros Date: Mon, 8 Jan 2024 15:38:10 -0800 Message-Id: <1704757091-7964-2-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1704757091-7964-1-git-send-email-roretzla@linux.microsoft.com> References: <1701976851-17275-1-git-send-email-roretzla@linux.microsoft.com> <1704757091-7964-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Include winapifamily.h for WINAPI_FAMILY macro and provide a definition of WINAPI_FAMILY_PHONE_APP if not present (happens compiling under mingw) Signed-off-by: Tyler Retzlaff Acked-by: Dmitry Kozlyuk --- lib/eal/windows/include/dirent.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/eal/windows/include/dirent.h b/lib/eal/windows/include/dirent.h index b522424..80bc6c3 100644 --- a/lib/eal/windows/include/dirent.h +++ b/lib/eal/windows/include/dirent.h @@ -8,6 +8,12 @@ #ifndef DIRENT_H #define DIRENT_H +#include + +#ifndef WINAPI_FAMILY_PHONE_APP +#define WINAPI_FAMILY_PHONE_APP 3 +#endif + /* * Include windows.h without Windows Sockets 1.1 to prevent conflicts with * Windows Sockets 2.0.