From ce2e74e5e38ba8c03620946e947e86dad0b81a76 Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Fri, 26 May 2017 09:33:55 -0400 Subject: [PATCH] Subject: lws_stats: fix compile error on VS2013 Use LWS_INLINE instead of inline in libwebsockets.h to make it compatible on both Linux and Windows. Signed-off-by: Andy Ning --- lib/libwebsockets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 99a9595..4866ad3 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -4904,9 +4904,9 @@ lws_stats_get(struct lws_context *context, int index); LWS_VISIBLE LWS_EXTERN void lws_stats_log_dump(struct lws_context *context); #else -static inline uint64_t +static LWS_INLINE uint64_t lws_stats_get(struct lws_context *context, int index) { return 0; } -static inline void +static LWS_INLINE void lws_stats_log_dump(struct lws_context *context) { } #endif -- 2.7.4