Wrapped c function in 'extern "C"' to make the library usable in C++
authorFlorian Pose <fp@igh-essen.com>
Tue, 21 Oct 2008 11:58:31 +0000
changeset 1288 bf0d42ca5aec
parent 1287 cc7b679c74e9
child 1289 5b82b6b39c2d
Wrapped c function in 'extern "C"' to make the library usable in C++
applications.
include/ecrt.h
--- a/include/ecrt.h	Tue Oct 21 11:31:07 2008 +0000
+++ b/include/ecrt.h	Tue Oct 21 11:58:31 2008 +0000
@@ -327,6 +327,10 @@
  * Global functions
  *****************************************************************************/
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** Returns the version magic of the realtime interface.
  *
  * \return Value of ECRT_VERSION_MAGIC() at EtherCAT master compile time.
@@ -1054,6 +1058,12 @@
     ec_voe_handler_t *voe /**< VoE handler. */
     );
 
+/*****************************************************************************/
+
+#ifdef __cplusplus
+}
+#endif
+
 /******************************************************************************
  * Bitwise read/write macros
  *****************************************************************************/