CE patch (from <Someone>)

This commit is contained in:
nethack.allison
2003-02-13 05:10:21 +00:00
parent 07ba201768
commit 6cf5c60dcc
12 changed files with 1265 additions and 93 deletions

View File

@@ -41,6 +41,8 @@
#define NOTSTDC /* no strerror() */
#define USER_SOUNDS
/*
* -----------------------------------------------------------------
* The remaining code shouldn't need modification.
@@ -243,6 +245,7 @@ int __cdecl read(int, void *, unsigned int);
int __cdecl unlink(const char *);
int __cdecl write(int, const void *, unsigned int);
int __cdecl rename(const char *, const char *);
int __cdecl access(const char *, int);
#ifdef DeleteFile
#undef DeleteFile
@@ -254,6 +257,9 @@ char *getcwd( char *buffer, int maxlen );
/* __stdlib.h__ */
#define abort() (void)TerminateProcess(GetCurrentProcess(), 0)
#ifndef strdup
#define strdup _strdup
#endif
/* sys/stat.h */
#define S_IWRITE GENERIC_WRITE