Glade 0.5.6 under Cygwin/NT4.0



Hi all,

When trying to build glade 0.5.6 under Cygwin/NT4.0 I got some errors due to
the use of _WIN32 in utils.c:

#ifdef _WIN32
#include <ctype.h>
#include <direct.h>
#else
#include <unistd.h>
#include <dirent.h>
#endif
....
#ifdef _WIN32
	  if (mkdir (directory) != 0)
#else
	  if (mkdir (directory, 0777) != 0)
#endif
....
  DIR *directory;

ctype.h and direct.h do not contain the definition of "mkdir" and "DIR".
The definition of "mkdir" is in mingw32/dir.h and "DIR" is in
mingw32/dirent.h.
Any sugestion for a proper fix?

Thanks

Jorge Sousa



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]