From: paularmitt Date: Fri, 31 Mar 2017 11:55:42 +0000 (+0800) Subject: windows: need LWS_INLINE X-Git-Tag: upstream/2.3.0~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=422f56c9dc70dbbeb65318c06071288517728705;p=platform%2Fupstream%2Flibwebsockets.git windows: need LWS_INLINE --- diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index b4049713..7898b419 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -33,12 +33,6 @@ extern "C" { #include #endif -static inline int lws_is_be(void) { - const int probe = ~0xff; - - return *(const char *)&probe; -} - #if defined(LWS_WITH_ESP8266) struct sockaddr_in; #define LWS_POSIX 0 @@ -295,6 +289,12 @@ LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len); #endif +static LWS_INLINE int lws_is_be(void) { + const int probe = ~0xff; + + return *(const char *)&probe; +} + /** * lws_set_log_level() - Set the logging bitfield * \param level: OR together the LLL_ debug contexts you want output from