win32 build for mod_enum/libudns. Please note, this builds but still DOES NOT work on windows.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3499 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-11-30 23:33:37 +00:00
parent 1f8b1ee421
commit fadc1ccebe
8 changed files with 757 additions and 12 deletions

View File

@@ -237,11 +237,11 @@ static __inline unsigned dns_get32(dnscc_t *s) {
| ((unsigned)s[2]<<8) | s[3];
}
static __inline dnsc_t *dns_put16(dnsc_t *d, unsigned n) {
*d++ = (n >> 8) & 255; *d++ = n & 255; return d;
*d++ = (dnsc_t)((n >> 8) & 255); *d++ = (dnsc_t)(n & 255); return d;
}
static __inline dnsc_t *dns_put32(dnsc_t *d, unsigned n) {
*d++ = (n >> 24) & 255; *d++ = (n >> 16) & 255;
*d++ = (n >> 8) & 255; *d++ = n & 255;
*d++ = (dnsc_t)((n >> 24) & 255); *d++ = (dnsc_t)((n >> 16) & 255);
*d++ = (dnsc_t)((n >> 8) & 255); *d++ = (dnsc_t)(n & 255);
return d;
}