X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=bfc7173d8d3cf19d6e65655595e4016b32ad3310;hb=78d7a5e98ff6569ef977bc4c72bd965b706b6e7c;hp=a949f761e935436f8baabdd3699ff7176f1671cc;hpb=445ef01ff266968b6545823aefece548c1517a40;p=meshlink diff --git a/src/meshlink++.h b/src/meshlink++.h index a949f761..bfc7173d 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -624,7 +624,7 @@ private: meshlink_handle_t *handle; }; -static const char *strerror(errno_t err = meshlink_errno) { +static inline const char *strerror(errno_t err = meshlink_errno) { return meshlink_strerror(err); } @@ -638,7 +638,7 @@ static const char *strerror(errno_t err = meshlink_errno) { * * @return This function will return true if the MeshLink instance was succesfully destroyed, false otherwise. */ -static bool destroy(const char *confbase) { +static inline bool destroy(const char *confbase) { return meshlink_destroy(confbase); } }