ntohl streamlined

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1274 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2006-11-27 13:31:35 +00:00
parent db1b77ce05
commit 0a885a6565
1 changed files with 3 additions and 3 deletions

View File

@ -27,9 +27,9 @@
#define vsnprintf _vsnprintf
/* To avoid linking with ws2_32.lib, here's the definition of ntohl() */
#define sys_ntohl(l) ((((l) << 24) & 0xff000000)
| (((l) << 16) & 0xff0000)
| (((l) << 8) & 0xff00)
#define sys_ntohl(l) ((((l) << 24) & 0xff000000) \
| (((l) << 16) & 0xff0000) \
| (((l) << 8) & 0xff00) \
| ((l) & 0xff))
#ifdef _MSC_VER /* MSVS.Net */