From: "Ido Barnea (ibarnea)" <ibarnea@cisco.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: [dpdk-dev] [PATCH] ixgbe:Prevent redefinition of bool if compiling using c++
Date: Mon, 18 Jul 2016 13:39:17 +0000 [thread overview]
Message-ID: <F4DFFE31-F3FA-4C3E-8A95-139E36AB9C9F@cisco.com> (raw)
In-Reply-To: <20160718133630.58012-1-ibarnea@cisco.com>
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
---
drivers/net/ixgbe/base/ixgbe_osdep.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ixgbe/base/ixgbe_osdep.h b/drivers/net/ixgbe/base/ixgbe_osdep.h
index 31cc1be..06d1ee1 100644
--- a/drivers/net/ixgbe/base/ixgbe_osdep.h
+++ b/drivers/net/ixgbe/base/ixgbe_osdep.h
@@ -108,7 +108,9 @@ typedef int16_t s16;
typedef uint32_t u32;
typedef int32_t s32;
typedef uint64_t u64;
+#ifndef __cplusplus
typedef int bool;
+#endif
#define mb() rte_mb()
#define wmb() rte_wmb()
--
2.8.3
next parent reply other threads:[~2016-07-18 13:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20160718133630.58012-1-ibarnea@cisco.com>
2016-07-18 13:39 ` Ido Barnea (ibarnea) [this message]
2016-07-18 13:54 ` Thomas Monjalon
2016-07-18 14:12 ` Ido Barnea (ibarnea)
2016-07-18 15:13 ` Thomas Monjalon
2016-07-21 23:23 ` Thomas Monjalon
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=F4DFFE31-F3FA-4C3E-8A95-139E36AB9C9F@cisco.com \
--to=ibarnea@cisco.com \
--cc=dev@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).