also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
9 lines
146 B
C
Vendored
9 lines
146 B
C
Vendored
#include <netinet/in.h>
|
|
#include <byteswap.h>
|
|
|
|
uint16_t htons(uint16_t n)
|
|
{
|
|
union { int i; char c; } u = { 1 };
|
|
return u.c ? bswap_16(n) : n;
|
|
}
|