Bo Peng wrote: >> > mode_t is only used when HAVE_CHMOD is enabled >> > so why do you need a HAVE_MODE_T? > > Because msvc has chmod, but not mode_t; and I am reluctant to use > compiler/os specific flags.
But chmod should be disabled for msvc. > >> And mingw has a mode_t. > > msvc is only *one* compiler under windows. mingw happens to have > mode_t, but what about cygwin, bcc and others? HAVE_MODE_T is a safer > solution. > Yes, it's more general. > Cheers, > Bo > -- Peter Kümmel