mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
unbreak C89
This commit is contained in:
1 parent
b30cf6587c
commit
4eadf3699f
4 files changed
+22
-14
No files matched your search
@@ -184,3 +184,12 @@ uint64_t mg_millis(void) {
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
// network format equates big endian order
|
||||
uint16_t mg_ntohs(uint16_t net) {
|
||||
return MG_LOAD_BE16(&net);
|
||||
}
|
||||
|
||||
uint32_t mg_ntohl(uint32_t net) {
|
||||
return MG_LOAD_BE32(&net);
|
||||
}
|
||||
Reference in new issue
Block a user