--- orig/src/LYUtils.h Sun Feb 17 21:00:58 2008 +++ src/LYUtils.h Mon Sep 22 14:42:19 2008 @@ -14,6 +14,10 @@ #include #endif /* VMS */ +#ifdef _MSC_VER +#include +#endif + #if defined(USE_DOS_DRIVES) #include #endif ------------------ new file src/LYmsvc_posix.h ------------------- /* $LynxId: LYmsvc_posix.h,v --- GV Exp $ */ #ifndef LYMSVC_POSIX_H #define LYMSVC_POSIX_H #if defined(_MSC_VER) && (_MSC_VER >= 1500) /* * Microsoft Visual Studio 2008 (and later) is a very noisy compiler. It warn * about many POSIX functions without an underscore. * * E.g. * src\Xsystem.c(129) : warning C4996: 'strnicmp': The POSIX name for this item is deprecated. * Instead use the ISO C++ conformant name: _strnicmp. See online help for details. * g:\vc_2008\VC\include\string.h(217) : see declaration of 'strnicmp' * * The warnings can be turned of by adding -D_CRT_SECURE_NO_WARNINGS to the CFLAGS. */ #include #include #include #define read(fd,ptr,siz) _read(fd,ptr,siz) #define write(fd,ptr,siz) _write(fd,ptr,siz) #define open _open /* var-arg function */ #define close(fd) _close(fd) #define strnicmp(s1,s2,n) _strnicmp(s1,s2,n) #define lseek(fd,ofs,whence) _lseek(fd,ofs,whence) #define dup(fd) _dup(fd) #define dup2(fd1,fd2) _dup2(fd1,fd2) #define unlink(name) _unlink(name) #define access(path,mode) _access(path,mode) #define chmod(path,mode) _chmod(path,mode) #define setmode(fd,mode) _setmode(fd,mode) #define fileno(file) _fileno(file) #define putenv(str) _putenv(str) #define mkdir(dir) _mkdir(dir) #define chdir(dir) _chdir(dir) #define rmdir(dir) _rmdir(dir) #define mktemp(templ) _mktemp(templ) #define isatty(fd) _isatty(fd) #define getpid() _getpid() #define spawnl _spawnl /* var-arg function */ #endif #endif /* LYMSVC_POSIX_H */