/
mud++0.33/etc/
mud++0.33/etc/guilds/
mud++0.33/help/propert/
mud++0.33/mudC/
mud++0.33/player/
mud++0.33/src/
mud++0.33/src/bcppbuilder/
mud++0.33/src/unix/
mud++0.33/src/vm/
// Hacks for WIN32 system

#ifndef WIN32_OSDEPEND_H
#define WIN32_OSDEPEND_H

#include <winsock.h>
#include <sys/timeb.h>
#include <process.h>

#ifndef __BCPLUSPLUS__
typedef unsigned char bool;
const unsigned char true = 1;
const unsigned char false = 0;
#endif

inline void gettimeofday( struct timeval * t , int )
{
	struct _timeb timebuffer;
	_ftime (& timebuffer);
	t->tv_sec = timebuffer.time;
	t->tv_usec = timebuffer.millitm * 1000;
}

extern bool DOWN;
extern WSAData WinsockInfo;

inline void mudpp_exit( int ecode )
{
	WSACleanup();
	exit(ecode);
}

//shameful hack, but working for now
#define EINPROGRESS WSAEINPROGRESS

#endif
#ifndef UNIX_OSDEPEND_H
#define UNIX_OSDEPEND_H

inline void mudpp_exit( int rcode )
{
	exit(rcode);
}

#endif
#ifndef OSDEPEND_H
#define OSDEPEND_H

#if defined(WIN32)
#include "win32/osdepend.h"
#elif defined(__CYGWIN32__)
// more elifs when needed
#else
#include "unix/osdepend.h"
#endif

#endif