Skip to content
Snippets Groups Projects
Commit 65fd106d authored by Michel Rasquin's avatar Michel Rasquin
Browse files

Fix compatibility issue between Linux and Windows

parent 6817b6a5
No related branches found
No related tags found
No related merge requests found
......@@ -1836,7 +1836,11 @@ void VTKData::initVTKFile()
vtkDirName = vtkFileName;
}
mkdir(vtkDirName.c_str(),S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); //755
#if defined(WIN32)
mkdir(vtkDirName.c_str());
#else
mkdir(vtkDirName.c_str(),S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); //755
#endif
vtkFileName = vtkDirName + ".p" + vtkFormat; // add pvtu extension to file name
vtkFile = fopen(vtkFileName.c_str(),"w");
......
......@@ -19,9 +19,16 @@
#include <sstream>
#include "fullMatrix.h"
#if defined(WIN32)
typedef unsigned __int8 uint8_t; // Valid for _MSC_VER >= 1300
typedef unsigned __int64 uint64_t
#define PRIu8 "u"
#define PRIu64 "I64u"
#else
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#endif
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
typedef std::vector<int> vectInt;
class PViewData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment