Apply changes to MS Visual C build. Patch from Ianos Gnatiuc 2:469/335.155
This commit is contained in:
@@ -42,6 +42,11 @@
|
||||
#include <dos.h>
|
||||
#endif
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
#include <direct.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include "hsksupp.h"
|
||||
#include "ffind.h"
|
||||
|
||||
|
@@ -37,7 +37,7 @@
|
||||
#endif
|
||||
#if defined(UNIX) || defined(__DJGPP__) || defined(__EMX__)
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(UNIX)
|
||||
#define stricmp strcasecmp
|
||||
|
@@ -46,6 +46,17 @@
|
||||
#define O_BINARY 0
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# define sleep(x) Sleep(1000L*(x))
|
||||
#endif
|
||||
|
||||
# ifndef S_ISDIR
|
||||
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
# endif
|
||||
# ifndef S_ISREG
|
||||
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
# endif
|
||||
|
||||
/* fexists.c */
|
||||
int fexist(const char *filename);
|
||||
long fsize(const char *filename);
|
||||
|
Reference in New Issue
Block a user