Skip to content
Snippets Groups Projects
Commit 349e8479 authored by Lev Walkin's avatar Lev Walkin
Browse files

ntohl streamlined

parent 1a83ec31
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf
/* To avoid linking with ws2_32.lib, here's the definition of ntohl() */ /* To avoid linking with ws2_32.lib, here's the definition of ntohl() */
#define sys_ntohl(l) ((((l) << 24) & 0xff000000) #define sys_ntohl(l) ((((l) << 24) & 0xff000000) \
| (((l) << 16) & 0xff0000) | (((l) << 16) & 0xff0000) \
| (((l) << 8) & 0xff00) | (((l) << 8) & 0xff00) \
| ((l) & 0xff)) | ((l) & 0xff))
#ifdef _MSC_VER /* MSVS.Net */ #ifdef _MSC_VER /* MSVS.Net */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment