Commit 64cf64a5 authored by rswindell's avatar rswindell
Browse files

Always #include direct.h for non-Unix builds (needed for mkdir prototype).

parent 8767845e
......@@ -67,6 +67,8 @@ extern "C" {
#else
#include <direct.h> /* mkdir() */
#define ALLFILES "*.*" /* matches all files in a directory */
#ifdef __WATCOMC__
#define MKDIR(dir) mkdir(dir)
......@@ -145,8 +147,6 @@ extern "C" {
struct dirent * readdir (DIR *__dir);
int closedir (DIR *__dir);
void rewinddir(DIR *__dir);
#elif defined(__WATCOMC__)
#include <direct.h> /* opendir, etc defined here in Watcom */
#else
#include <dirent.h> /* POSIX directory functions */
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment