Subject: lws_stats: fix compile error on VS2013
authorAndy Ning <andy.ning@windriver.com>
Fri, 26 May 2017 13:33:55 +0000 (09:33 -0400)
committerAndy Green <andy@warmcat.com>
Tue, 30 May 2017 23:44:08 +0000 (07:44 +0800)
Use LWS_INLINE instead of inline in libwebsockets.h to
make it compatible on both Linux and Windows.

Signed-off-by: Andy Ning <andy.ning@windriver.com>
lib/libwebsockets.h

index 99a9595..4866ad3 100644 (file)
@@ -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