1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

Fixed some mingw-w64 compilation issues

This commit is contained in:
Maksim Shabunin
2015-09-10 16:39:45 +03:00
parent 88a72a0596
commit c1f27e9a69
6 changed files with 10 additions and 10 deletions

View File

@@ -45,7 +45,7 @@
#include <sstream>
#ifdef __GNUC__
#ifndef _WIN32
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
@@ -73,7 +73,7 @@ void split(const string &s, vector<string> &elems, char delim)
void createDirectory(const string &path)
{
#ifdef __GNUC__
#ifndef _WIN32
mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#else
mkdir(path.c_str());
@@ -82,7 +82,7 @@ void createDirectory(const string &path)
void getDirList(const string &dirName, vector<string> &fileNames)
{
#ifdef __GNUC__
#ifndef _WIN32
struct dirent **namelist;
int n = scandir(dirName.c_str(), &namelist, NULL, alphasort);
for (int i=0; i<n; ++i)