diff --git a/Post/adaptiveData.cpp b/Post/adaptiveData.cpp index 23b687e8cf71e46e1889a3132341604025d5d445..64c58bbef0bd3f50de27db664dcf0e43c15a53ef 100644 --- a/Post/adaptiveData.cpp +++ b/Post/adaptiveData.cpp @@ -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"); diff --git a/Post/adaptiveData.h b/Post/adaptiveData.h index 53bb6c52f27afc5dd5958458df2764c5d2bd4270..8bac610f453932c691d0ce824037636e25ff7088 100644 --- a/Post/adaptiveData.h +++ b/Post/adaptiveData.h @@ -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;