From f20d84f9c1f5535850bfb8f0c4451f2549aec6a1 Mon Sep 17 00:00:00 2001 From: henri Date: Mon, 24 Feb 2014 13:16:24 +0000 Subject: [PATCH] Workaround to compile inline functions with MSVC v16 [Patch from Gisle Vanem]. --- nbase/nbase.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nbase/nbase.h b/nbase/nbase.h index d9cd15e28..7dff89662 100644 --- a/nbase/nbase.h +++ b/nbase/nbase.h @@ -368,6 +368,10 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list); #define DEVNULL "/dev/null" #endif +#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline) +#define inline __inline +#endif + static inline int checked_fd_isset(int fd, const fd_set *fds) { #ifndef WIN32