projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db64bfc
)
windows: need LWS_INLINE
author
paularmitt
<paularmitt@user.github.invalid.com>
Fri, 31 Mar 2017 11:55:42 +0000
(19:55 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 31 Mar 2017 11:57:24 +0000
(19:57 +0800)
lib/libwebsockets.h
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.h
b/lib/libwebsockets.h
index b40497136e9da8acae3ab862984cfe00444faeb2..7898b419a53be3e469387fe693fea9e04b4a8e08 100644
(file)
--- a/
lib/libwebsockets.h
+++ b/
lib/libwebsockets.h
@@
-33,12
+33,6
@@
extern "C" {
#include <stdarg.h>
#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