[PATCH 02/50] c linkage for wlock_xxx() methods


Michael Schonberg <mschonberg@...>
 

From: Mike Schonberg <mschonberg@nyx.com>

These must be declared with extern "C" to link correctly with C++ applications.

Signed-off-by: Mike Schonberg <mschonberg@nyx.com>
---
common/c_cpp/src/c/wlock.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/common/c_cpp/src/c/wlock.h b/common/c_cpp/src/c/wlock.h
index 199dad8..f43051f 100644
--- a/common/c_cpp/src/c/wlock.h
+++ b/common/c_cpp/src/c/wlock.h
@@ -22,11 +22,19 @@
#ifndef _WOMBAT_WLOCK_H
#define _WOMBAT_WLOCK_H

+#include <wombat/wConfig.h>
+
+#if defined (__cplusplus)
+extern "C" {
+#endif
typedef void * wLock;

COMMONExpDLL wLock wlock_create( void );
COMMONExpDLL void wlock_destroy( wLock lock );
COMMONExpDLL void wlock_lock( wLock lock );
COMMONExpDLL void wlock_unlock( wLock lock );
+#if defined (__cplusplus)
+}
+#endif

#endif /* _WOMBAT_WLOCK_H */
--
1.7.7.6