build win32

This commit is contained in:
David Rose 2009-12-21 18:08:46 +00:00
parent c136904fa9
commit 6c0957c21a

View File

@ -35,6 +35,8 @@
#ifdef _WIN32
#include <shlobj.h>
#include <io.h> // chmod()
#include <direct.h> // rmdir()
#else
#include <sys/stat.h>
#include <signal.h>
@ -1073,7 +1075,7 @@ delete_directory_recursively(const string &root_dir) {
if (result == 0) {
nout << "Deleted " << root_dir << "\n";
} else {
if (access(root_dir.c_str(), F_OK) == 0) {
if (access(root_dir.c_str(), 0) == 0) {
nout << "Could not delete " << root_dir << "\n";
}
}
@ -1123,7 +1125,7 @@ delete_directory_recursively(const string &root_dir) {
if (result == 0) {
nout << "Removed directory " << root_dir << "\n";
} else {
if (access(pathname.c_str(), F_OK) == 0) {
if (access(pathname.c_str(), 0) == 0) {
nout << "Could not remove directory " << root_dir << "\n";
}
}