From: David Marchand <david.marchand@redhat.com>
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 [thread overview]
Message-ID: <20220405134858.18711-1-david.marchand@redhat.com> (raw)
Add missing 'extern "C"' to file.
Fixes: 1db72630da0c ("eal/windows: do not expose private facilities")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
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
next reply other threads:[~2022-04-05 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-05 13:48 David Marchand [this message]
2022-04-07 11:20 ` Tyler Retzlaff
2022-04-08 9:18 ` David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220405134858.18711-1-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).