Fix compilation errors for POSIX files and make premake4-linux executable.
Former-commit-id: bb094585a678b983e25b55c4fab00665e66f64c5
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <Nazara/Core/Posix/FileImpl.hpp>
|
||||
#include <Nazara/Core/Error.hpp>
|
||||
#include <Nazara/Core/Posix/Time.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
@@ -26,7 +25,7 @@ bool NzFileImpl::EndOfFile() const
|
||||
{
|
||||
if (!m_endOfFileUpdated)
|
||||
{
|
||||
stat64 fileSize;
|
||||
struct stat64 fileSize;
|
||||
if (fstat64(m_fileDescriptor, &fileSize) == -1)
|
||||
fileSize.st_size = 0;
|
||||
|
||||
@@ -192,7 +191,7 @@ bool NzFileImpl::Delete(const NzString& filePath)
|
||||
|
||||
bool NzFileImpl::Exists(const NzString& filePath)
|
||||
{
|
||||
char* path = filePath.GetConstBuffer();
|
||||
const char* path = filePath.GetConstBuffer();
|
||||
if (access(path, F_OK) != -1)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user