git-svn-id: svn://db.shs.com.ru/pip@726 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -19,11 +19,11 @@
|
|||||||
#include "piincludes_p.h"
|
#include "piincludes_p.h"
|
||||||
#include "pidir.h"
|
#include "pidir.h"
|
||||||
|
|
||||||
#ifdef ESP_PLATFORM
|
//#ifdef ESP_PLATFORM
|
||||||
extern "C" {
|
//extern "C" {
|
||||||
# include "esp_spiffs.h"
|
//# include "esp_spiffs.h"
|
||||||
}
|
//}
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
const PIChar PIDir::separator = '/';
|
const PIChar PIDir::separator = '/';
|
||||||
#ifdef QNX
|
#ifdef QNX
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
#include "pifile.h"
|
#include "pifile.h"
|
||||||
#include "pidir.h"
|
#include "pidir.h"
|
||||||
#include "pitime_win.h"
|
#include "pitime_win.h"
|
||||||
#ifdef ESP_PLATFORM
|
//#ifdef ESP_PLATFORM
|
||||||
extern "C" {
|
//extern "C" {
|
||||||
# include "esp_spiffs.h"
|
//# include "esp_spiffs.h"
|
||||||
}
|
//}
|
||||||
#endif
|
//#endif
|
||||||
#ifdef WINDOWS
|
#ifdef WINDOWS
|
||||||
# undef S_IFDIR
|
# undef S_IFDIR
|
||||||
# undef S_IFREG
|
# undef S_IFREG
|
||||||
@@ -729,7 +729,7 @@ bool PIFile::applyFileInfo(const PIString & path, const PIFile::FileInfo & info)
|
|||||||
}
|
}
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
#else
|
#else
|
||||||
#ifndef ESP_PLATFORM
|
//#ifndef ESP_PLATFORM
|
||||||
int mode(0);
|
int mode(0);
|
||||||
if (info.perm_user.read) mode |= S_IRUSR;
|
if (info.perm_user.read) mode |= S_IRUSR;
|
||||||
if (info.perm_user.write) mode |= S_IWUSR;
|
if (info.perm_user.write) mode |= S_IWUSR;
|
||||||
@@ -759,7 +759,7 @@ bool PIFile::applyFileInfo(const PIString & path, const PIFile::FileInfo & info)
|
|||||||
piCout << "[PIFile] applyFileInfo: \"utimes\" error:" << errorString();
|
piCout << "[PIFile] applyFileInfo: \"utimes\" error:" << errorString();
|
||||||
//return false;
|
//return false;
|
||||||
}
|
}
|
||||||
#endif
|
//#endif
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user