Fix build

This commit is contained in:
Oleg.Korshul
2025-10-02 08:39:13 +03:00
parent e7d913e1d2
commit 28584e7df1

View File

@ -30,10 +30,11 @@
*
*/
#include "PICFile.h"
#include "../../common/File.h"
#include <sys/stat.h>
#include <unistd.h>
CPictFile::CPictFile()
{
m_pRenderer = NSGraphics::Create();
@ -977,7 +978,12 @@ size_t CPictFile::GetFileSize() const
{
struct stat st;
long long file_discription = _fileno(m_pFile);
long long file_discription =
#ifdef _WIN32
_fileno(m_pFile);
#else
fileno(m_pFile);
#endif
if (fstat(file_discription, &st) == 0)
return st.st_size;