Skip to content
Snippets Groups Projects
winjunk.h 509 B
Newer Older
teuben's avatar
teuben committed
#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();

slevy's avatar
 
slevy committed
extern double rint(double);

extern int access(char *fname, int how);
#define R_OK 004

teuben's avatar
teuben committed
#endif /*WIN32*/