Browse Source

Addressed Fileproc compilation errors on msys/windows

refactor
5 years ago
parent
commit
b846bd342c
  1. 8
      source/Fileproc.cpp
  2. 7
      source/Fileproc.h

8
source/Fileproc.cpp

@ -284,10 +284,16 @@ int Finishpage(int ngood,int nbad,ulong nrestored) { @@ -284,10 +284,16 @@ int Finishpage(int ngood,int nbad,ulong nrestored) {
int Saverestoredfile(int force) {
int n,success;
ushort filecrc;
ulong l,length;
ulong length;
uchar *bufout,*data,*tempdata;
t_fproc *pf;
#ifdef _WIN32
HANDLE hfile;
uint l;
#elif __linux__
std::string hfile;
ulong l;
#endif
pf=&fproc;
if (pf->busy==0 || pf->nblock==0)
return -1; // Index points to unused descriptor

7
source/Fileproc.h

@ -21,10 +21,11 @@ @@ -21,10 +21,11 @@
#include "Global.h"
#include <string>
#ifdef _WIN32
#include <windows.h>
#endif
typedef struct t_fproc { // Descriptor of processed file
int busy; // In work

Loading…
Cancel
Save