# HG changeset patch # User Florian Pose # Date 1224590311 0 # Node ID bf0d42ca5aec65eee32a49e7f129af765790312b # Parent cc7b679c74e928d5c33e6594960f39071bb83990 Wrapped c function in 'extern "C"' to make the library usable in C++ applications. diff -r cc7b679c74e9 -r bf0d42ca5aec 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 *****************************************************************************/