git-svn-id: svn://db.shs.com.ru/pip@726 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-08 12:18:19 +00:00
parent 94aa6711af
commit 01c2e143e4
2 changed files with 12 additions and 12 deletions

View File

@@ -19,11 +19,11 @@
#include "piincludes_p.h"
#include "pidir.h"
#ifdef ESP_PLATFORM
extern "C" {
# include "esp_spiffs.h"
}
#endif
//#ifdef ESP_PLATFORM
//extern "C" {
//# include "esp_spiffs.h"
//}
//#endif
const PIChar PIDir::separator = '/';
#ifdef QNX

View File

@@ -20,11 +20,11 @@
#include "pifile.h"
#include "pidir.h"
#include "pitime_win.h"
#ifdef ESP_PLATFORM
extern "C" {
# include "esp_spiffs.h"
}
#endif
//#ifdef ESP_PLATFORM
//extern "C" {
//# include "esp_spiffs.h"
//}
//#endif
#ifdef WINDOWS
# undef S_IFDIR
# undef S_IFREG
@@ -729,7 +729,7 @@ bool PIFile::applyFileInfo(const PIString & path, const PIFile::FileInfo & info)
}
CloseHandle(hFile);
#else
#ifndef ESP_PLATFORM
//#ifndef ESP_PLATFORM
int mode(0);
if (info.perm_user.read) mode |= S_IRUSR;
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();
//return false;
}
#endif
//#endif
#endif
return true;
}