MSVC: Use io.h instead of unistd.h

This commit is contained in:
Razi Alavizadeh 2018-12-05 01:36:52 +03:30
parent e5541392d5
commit 76df3202a9

View File

@ -39,7 +39,6 @@
#include <cfloat> #include <cfloat>
#include <QComboBox> #include <QComboBox>
#include <QPrinter> #include <QPrinter>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
@ -104,11 +103,13 @@
/** \brief a separator between two directories in a path between \c ' quotes */ /** \brief a separator between two directories in a path between \c ' quotes */
#define JKQTPPATHSEPARATOR_CHAR '\\' #define JKQTPPATHSEPARATOR_CHAR '\\'
#include<windows.h> #include<windows.h>
#include <io.h>
#else #else
/** \brief a separator between two directories in a path between \c " quotes */ /** \brief a separator between two directories in a path between \c " quotes */
#define JKQTPPATHSEPARATOR_STRING "/" #define JKQTPPATHSEPARATOR_STRING "/"
/** \brief a separator between two directories in a path between \c ' quotes */ /** \brief a separator between two directories in a path between \c ' quotes */
#define JKQTPPATHSEPARATOR_CHAR '/' #define JKQTPPATHSEPARATOR_CHAR '/'
#include <unistd.h>
#endif #endif