/* System description file for Windows NT. Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of Web2C. Web2C is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. Web2C is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Web2C; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef KPATHSEA_WIN32LIB_H #define KPATHSEA_WIN32LIB_H /* * Define symbols to identify the version of Unix this is. * Define all the symbols that apply correctly. */ #ifndef DOSISH #define DOSISH #endif #ifndef MAXPATHLEN #define MAXPATHLEN _MAX_PATH #endif #define HAVE_DUP2 1 #define HAVE_RENAME 1 #define HAVE_RMDIR 1 #define HAVE_MKDIR 1 #define HAVE_GETHOSTNAME 1 #define HAVE_RANDOM 1 #define USE_UTIME 1 #define HAVE_MOUSE 1 #define HAVE_TZNAME 1 /* These have to be defined because our compilers treat __STDC__ as being defined (most of them anyway). */ #define access _access #define alloca _alloca #define chdir _chdir #define chmod _chmod #define close _close #define creat _creat #define dup _dup #define dup2 _dup2 #define execlp _execlp #define execvp _execvp #define fdopen _fdopen #define fileno _fileno #define getpid _getpid #define getwd(dir) GetCurrentDirectory(MAXPATHLEN, dir) #define index strchr #define isatty _isatty #define itoa _itoa #define link _link #define lseek _lseek #define mkdir _mkdir #define mktemp _mktemp #define open _open #define pipe _pipe #if 0 #define popen _popen #define pclose _pclose #endif #define putenv _putenv #define read _read #define rmdir _rmdir #define setmode _setmode #define spawnlp _spawnlp #define stat _stat #define strcasecmp _stricmp #define strdup _strdup #define strncasecmp _strnicmp #define unlink _unlink #define umask _umask #define utime _utime #define write _write #define S_IFMT _S_IFMT #define S_IFDIR _S_IFDIR #define S_IFCHR _S_IFCHR #define S_IFIFO _S_IFIFO #define S_IFREG _S_IFREG #define S_IREAD _S_IREAD #define S_IWRITE _S_IWRITE #define S_IEXEC _S_IEXEC #define S_IXUSR _S_IEXEC #define S_IXGRP _S_IEXEC #define S_IXOTH _S_IEXEC #define S_IRUSR _S_IREAD #define S_IWUSR _S_IWRITE #define O_RDWR _O_RDWR #define O_CREAT _O_CREAT #define O_TRUNC _O_TRUNC #define O_RDONLY _O_RDONLY #define O_WRONLY _O_WRONLY #define O_APPEND _O_APPEND #define O_TEXT _O_TEXT #define O_BINARY _O_BINARY /* Define this so that winsock.h definitions don't get included when windows.h is... For this to have proper effect, config.h must always be included before windows.h. */ #define _WINSOCKAPI_ 1 #include /* Defines size_t and alloca (). */ #include /* For proper declaration of environ. */ #include #include #include #include #include /* Web2C takes care of ensuring that these are defined. */ #ifdef max #undef max #undef min #endif /* Functions from win32lib.c */ extern FILE *popen(const char *, const char *); extern int pclose(FILE *); /* ============================================================ */ #endif /* not KPATHSEA_WIN32LIB_H */