home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN321SRC.ZIP / osgnudjg.h < prev    next >
C/C++ Source or Header  |  2004-07-18  |  699b  |  35 lines

  1. /* $Id: osgnudjg.h,v 1.3 2004/07/17 03:05:06 ozzmosis Exp $ */
  2.  
  3. #include <dir.h>
  4. #include <stdlib.h>             /* for size_t */
  5. #include <io.h>
  6. #include <unistd.h>             /* for chdir, getcwd */
  7. #include <dirent.h>
  8.  
  9. #define STR_DIRSEPARATOR "\\"
  10.  
  11. /* Needed definitions */
  12. #define OSFND "osgnufnd.c"
  13. #define OSFUL "osdosful.c"
  14.  
  15. #define HAVE_STRUPR
  16.  
  17. #define MYMAXFILE  MAXFILE
  18. #define MYMAXDIR   MAXDIR
  19. #define MYMAXPATH  MAXPATH
  20. #define MYMAXEXT   MAXEXT
  21. #define MYMAXDRIVE MAXDRIVE
  22.  
  23. struct _filefind
  24. {
  25.     char path[MYMAXDIR];
  26.     char mask[MYMAXFILE];
  27.     DIR *dirp;
  28.     struct dirent *pentry;
  29.     int flags;
  30. };
  31.  
  32.  
  33. #define filecmp       stricmp
  34. #define filenodir(x) (strpbrk((x),"\\/") == NULL)
  35.