m3core/src/unix/Common/Uin.c


#include "m3core.h"
#ifndef _WIN32
/* Posix says include <arpa/inet.h>, but FreeBSD 4 inet.h
   requires netinet/in.h
 */
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* ntohl are sometimes macros (FreeBSD 4) so we don't use M3WRAP1 */

M3_DLL_EXPORT UINT32 __cdecl Uin__ntohl(UINT32 x) { return ntohl(x); }
M3_DLL_EXPORT UINT16 __cdecl Uin__ntohs(UINT16 x) { return ntohs(x); }
M3_DLL_EXPORT UINT32 __cdecl Uin__htonl(UINT32 x) { return htonl(x); }
M3_DLL_EXPORT UINT16 __cdecl Uin__htons(UINT16 x) { return htons(x); }

#ifdef __cplusplus
} /* extern "C" */
#endif