From a97034d35729bf8333376f72532ef460ce8036d8 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Tue, 21 Oct 2008 11:58:31 +0000 Subject: [PATCH] Wrapped c function in 'extern "C"' to make the library usable in C++ applications. --- include/ecrt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/ecrt.h b/include/ecrt.h index eddbb938..434b2371 100644 --- a/include/ecrt.h +++ b/include/ecrt.h @@ -327,6 +327,10 @@ typedef enum { * 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_request_state_t ecrt_voe_handler_execute( ec_voe_handler_t *voe /**< VoE handler. */ ); +/*****************************************************************************/ + +#ifdef __cplusplus +} +#endif + /****************************************************************************** * Bitwise read/write macros *****************************************************************************/