summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--getabook.c3
-rw-r--r--getbnbook.c3
-rw-r--r--getgbook.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/getabook.c b/getabook.c
index f575469..0bcce3c 100644
--- a/getabook.c
+++ b/getabook.c
@@ -5,6 +5,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
+#indef WINVER
+#define mkdir(D, M) _mkdir(D)
+#endif
#include "util.h"
#define usage "getabook " VERSION " - an amazon look inside the book downloader\n" \
diff --git a/getbnbook.c b/getbnbook.c
index 806b2e8..2de46a9 100644
--- a/getbnbook.c
+++ b/getbnbook.c
@@ -5,6 +5,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
+#indef WINVER
+#define mkdir(D, M) _mkdir(D)
+#endif
#include "util.h"
#define usage "getbnbook " VERSION " - a barnes and noble book downloader\n" \
diff --git a/getgbook.c b/getgbook.c
index 54a2d10..58150cb 100644
--- a/getgbook.c
+++ b/getgbook.c
@@ -5,6 +5,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
+#indef WINVER
+#define mkdir(D, M) _mkdir(D)
+#endif
#include "util.h"
#define usage "getgbook " VERSION " - a google books downloader\n" \