Newer
Older
#ifdef WIN32
#define htonl htonl_hosed_by_win32
#define ntohl ntohl_hosed_by_win32
#include <windows.h>
#include <malloc.h>
#undef htonl
#undef ntohl
extern unsigned int htonl(unsigned int v);
#define ntohl(x) htonl(x)
extern int strcasecmp(const char *s1, const char *s2);
extern int strncasecmp(const char *s1, const char *s2, int maxlen);
extern void srandom(int seed);
extern int random();
extern int access(char *fname, int how);
#define R_OK 004