infiniband-diags: ibnetdisc Wrap header for use in C++ code
PATCH 1/1 infiniband-diags: ibnetdisc Wrap header for use in C++ code
Quoted 1 line
From
4ec00110f416643f6715c89c4776fc9e0ea51d6fMon Sep 17 00:00:00 2001
From: Ira Weiny <[email protected]>
Date: Mon, 19 Sep 2011 14:05:09 -0700
Signed-off-by Ira Weiny <[email protected]>
--- libibnetdisc/include/infiniband/ibnetdisc.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
libibnetdisc/include/infiniband/ibnetdisc.h +8 -0
@@ -36,6 +36,10 @@ #ifndef _IBNETDISC_H_ #define _IBNETDISC_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include <stdio.h> #include <infiniband/mad.h> #include <iba/ib_types.h>
@@ -237,4 +241,8 @@ IBND_EXPORT int ibnd_is_xsigo_guid(uint64_t guid); IBND_EXPORT int ibnd_is_xsigo_tca(uint64_t guid); IBND_EXPORT int ibnd_is_xsigo_hca(uint64_t guid); +#ifdef __cplusplus +} +#endif +#endif /* _IBNETDISC_H_ */
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Ira Weiny
libibnetdisc/include/infiniband/ibnetdisc.h +4
-0+#ifdef __cplusplus +extern "C" { +#endif +#include <
stdio.h>
#include <infiniband/mad.h>
#include <iba/ib_types.h>
It is bad style to surround #include directives with 'extern "C"'.
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · On Wed, 21 Sep 2011 03:11:04 -0700 Bart Van Assche…
Quoted 7 lines · Ira Weiny
libibnetdisc/include/infiniband/ibnetdisc.h +4
-0+#ifdef __cplusplus +extern "C" { +#endif +#include <
stdio.h>
#include <infiniband/mad.h>
#include <iba/ib_types.h>It is bad style to surround #include directives with 'extern "C"'.
My bad, thanks for the catch.
Ira
Quoted 2 lines
Bart.
Signature · 9 lines
Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html