1 /*
2 **
3 **  Editline system header file for MSDOS
4 */
5 
6 #ifndef __STDC__
7 #ifdef __BORLANDC__
8 #define __STDC__
9 #endif
10 #endif
11 
12 #define CRLF		"\r\n"
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 #if defined(DJGPP)
16 #include <pc.h>
17 #include <keys.h>
18 #endif
19 
20 void dv_pause( void ) ;
21 
22 #if defined(HAVE_DIRENT_H)
23 #include <dirent.h>
24 typedef struct dirent	DIRENTRY;
25 
26 #elif defined(_MSC_)
27 #define FINDFIRST
28 #include <direct.h>
29 #include <io.h>
30 #include <dos.h>
31 typedef struct _finddata DIRENTRY;
32 
33 #else
34 #include <dir.h>
35 typedef struct ffblk DIRENTRY;
36 #endif	/* defined(HAVE_DIRENT_H) */
37 
38 /* this just provides missing prototypes for certain Borland compilers */
39 #if defined(__TURBOC__) && defined(__STDC__)
40 char *strdup( const char *s );
41 char *strlwr( char *s );
42 #endif
43 
44 #if	!defined(S_ISDIR)
45 #define S_ISDIR(m)		(((m) & S_IFMT) == S_IFDIR)
46 #endif	/* !defined(S_ISDIR) */
47 
48 #ifdef BADLWR
49 #ifdef tolower
50 #undef tolower
51 #undef toupper
52 #endif
53 #define tolower(x) (((x)>0x40)&&((x)<0x5b)?((x)|0x20):(x))
54 #define toupper(x) (((x)>0x60)&&((x)<0x7b)?((x)&0xdf):(x))
55 #endif
56