From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH v2 11/11] evio: turn nto c Date: Wed, 5 Dec 2018 00:28:48 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: Needed for #3234 --- src/CMakeLists.txt | 2 +- src/{evio.cc => evio.c} | 0 src/evio.h | 9 +++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) rename src/{evio.cc => evio.c} (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e431d1f57..04de5ad04 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -90,7 +90,7 @@ set (core_sources fiber_channel.c latch.c sio.c - evio.cc + evio.c coio.cc coio_task.c coio_file.c diff --git a/src/evio.cc b/src/evio.c similarity index 100% rename from src/evio.cc rename to src/evio.c diff --git a/src/evio.h b/src/evio.h index 6c5e54ea4..69d641a60 100644 --- a/src/evio.h +++ b/src/evio.h @@ -38,6 +38,11 @@ #include "tarantool_ev.h" #include "sio.h" #include "uri.h" + +#if defined(__cplusplus) +extern "C" { +#endif /* defined(__cplusplus) */ + /** * A way to add a listening socket to the event loop. Callbacks * are invoked on bind and accept events. @@ -152,4 +157,8 @@ evio_timeout_update(ev_loop *loop, ev_tstamp start, ev_tstamp *delay) int evio_setsockopt_client(int fd, int family, int type); +#if defined(__cplusplus) +} /* extern "C" */ +#endif /* defined(__cplusplus) */ + #endif /* TARANTOOL_EVIO_H_INCLUDED */ -- 2.17.2 (Apple Git-113)