home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN325SRC.ZIP / makenl-3.2.5 / src / ostbcdos.h < prev    next >
C/C++ Source or Header  |  2005-02-06  |  800b  |  39 lines

  1. /* $Id: ostbcdos.h,v 1.8 2004/07/17 10:20:21 ozzmosis Exp $ */
  2.  
  3. #include <dir.h>
  4. #include <stdlib.h>             /* for size_t */
  5. #include <io.h>
  6.  
  7. #define STR_DIRSEPARATOR "\\"
  8.  
  9. /* Needed definitions */
  10. #define OSFND "osdosfnd.c"
  11. #define OSFUL "osdosful.c"
  12.  
  13. #ifdef USE_DO_EXEC
  14. /* Thomas Wagner's do_exec() isn't working yet... */
  15. /* Overrides over defaults */
  16. #undef OSEXC
  17. #define OSEXC "osd16exc.c"
  18. #endif
  19.  
  20. #define HAVE_STRUPR
  21.  
  22. #define __DOS16__
  23. #define F_OK 0
  24.  
  25. #define MYMAXFILE  MAXFILE
  26. #define MYMAXDIR   MAXDIR
  27. #define MYMAXPATH  MAXPATH
  28. #define MYMAXEXT   MAXEXT
  29. #define MYMAXDRIVE MAXDRIVE
  30.  
  31. struct _filefind
  32. {
  33.     char path[MYMAXFILE + MYMAXEXT];
  34.     struct ffblk fileinfo;
  35. };
  36.  
  37. #define filecmp       stricmp
  38. #define filenodir(x) (strpbrk((x),"\\/") == NULL)
  39.