mirror of https://gerrit.osmocom.org/asn1c
ntohl streamlined
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1274 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
db1b77ce05
commit
0a885a6565
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue