- we need S_ISREG and S_ISCHR macros to actually do whey're supposed to

(no more stupid hack) so that win32 can handle either raw floppy or
  floppy disk image.
This commit is contained in:
Bryce Denney 2001-10-01 17:01:00 +00:00
parent c2e09b1889
commit 026a8554ef

View File

@ -45,8 +45,8 @@ extern "C" {
#ifdef WIN32
#ifndef __MINGW32__
// always return regular file.
# define S_ISREG(st_mode) 1
# define S_ISCHR(st_mode) 0
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
// VCPP includes also are missing these
# define off_t long