/************************************************************************** * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer, * * Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe. * * * * Merc Diku Mud improvements copyright (C) 1992, 1993 by Michael * * Chastain, Michael Quan, and Mitchell Tse. * * * * In order to use any part of this Merc Diku Mud, you must comply with * * both the original Diku license in 'license.doc' as well the Merc * * license in 'license.txt'. In particular, you may not remove either of * * these copyright notices. * * * * Much time and thought has gone into this software and you are * * benefiting. We hope that you share your changes too. What goes * * around, comes around. * ***************************************************************************/ /************************************************************************** * ROM 2.4 is copyright 1993-1998 Russ Taylor * * ROM has been brought to you by the ROM consortium * * Russ Taylor (rtaylor@hypercube.org) * * Gabrielle Taylor (gtaylor@hypercube.org) * * Brian Moore (zump@rom.org) * * By using this code, you have agreed to follow the terms of the * * ROM license, in the file Rom24/doc/rom.license * **************************************************************************/ #if !defined(WINSTUFF_H) #define WINSTUFF_H /* Win32 stuff */ #if defined (WIN32) #include <windows.h> #define bzero(block, size) memset(block, 0, size); #define bcopy( from, to, size) memcpy(to, from, size ) #define write( fd, buf, count ) send(fd, buf, count, 0) #define read( fd, buf, count ) recv(fd, buf, count, 0) #define vsnprintf _vsnprintf #define snprintf _snprintf #define vsnprintf _vsnprintf #define close closesocket #define random() rand() #define srandom( x ) srand( x ) typedef struct dirent { WIN32_FIND_DATA FindData; HANDLE Data; char d_name[MAX_PATH + 1]; /* file's name */ BOOL d_firstread; /* flag for 1st time */ } DIR; DIR *opendir (const char *dirname); struct dirent *readdir (DIR * dirstream); int closedir (DIR * dirstream); int strncasecmp (const char *s1, const char *s2, size_t n); int strcasecmp (const char *s1, const char *s2); #endif #endif