From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C53F5A0509 for ; Tue, 5 Apr 2022 15:49:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4E9840DF6; Tue, 5 Apr 2022 15:49:11 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id E0FA240DF6 for ; Tue, 5 Apr 2022 15:49:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649166550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x88CNd9cGAhzZ9U5Q62NFfDKO4xYH9N8zQ7I5/jZ8Ww=; b=VQYUz3VXHfEYF0aEvffcVMeJPEJMBw/qLo3s90RYh1wTQcdGQTuMRuY9UitPBSygorIqZ6 aJrPRWJ5xO1uLgKkIFIobkwovQmvK/YidvVaIPBvY8LOudL5tj+zQ16GF5v6ytSsGRSPfA mQLdkcLUp1PDjw8/I8/lVnd3YKLyz3U= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-623-fesRZNxfNZqs62S0WWgYyg-1; Tue, 05 Apr 2022 09:49:07 -0400 X-MC-Unique: fesRZNxfNZqs62S0WWgYyg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 13AED18E0044; Tue, 5 Apr 2022 13:49:07 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.195.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BC19401E9F; Tue, 5 Apr 2022 13:49:06 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org Subject: [PATCH] eal/windows: add missing C++ include guards Date: Tue, 5 Apr 2022 15:48:58 +0200 Message-Id: <20220405134858.18711-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Add missing 'extern "C"' to file. Fixes: 1db72630da0c ("eal/windows: do not expose private facilities") Cc: stable@dpdk.org Signed-off-by: David Marchand --- Caught by cross compiling with mingw + enabling the headers check. --- lib/eal/windows/include/rte_windows.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/eal/windows/include/rte_windows.h b/lib/eal/windows/include/rte_windows.h index 0063b5d78c..83730c3d2e 100644 --- a/lib/eal/windows/include/rte_windows.h +++ b/lib/eal/windows/include/rte_windows.h @@ -5,6 +5,10 @@ #ifndef _RTE_WINDOWS_H_ #define _RTE_WINDOWS_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * @file Windows-specific facilities * @@ -48,4 +52,8 @@ RTE_FMT_HEAD(__VA_ARGS__,) "\n", GetLastError(), \ RTE_FMT_TAIL(__VA_ARGS__,))) +#ifdef __cplusplus +} +#endif + #endif /* _RTE_WINDOWS_H_ */ -- 2.23.0