clear();
m_file.close();
}
-#ifdef __linux__
+#if defined __linux__ || defined WIN32
void* memichr(void* heap, int cc, size_t length){
const char* heap2 = reinterpret_cast<const char*>(heap);
int cc2 = tolower(cc);
memchr(start, first, restLength) :
memichr(start, first, restLength))) != NULL){
if ((ignoreCase ?
- memicmp(ptr, toFind, sourceLength) :
+ _memicmp(ptr, toFind, sourceLength) :
memcmp(ptr, toFind, sourceLength)) == 0){
rc = true;
lineNo = m_currentLineNo;
if (parent != NULL){
temp += parent;
if (stat(temp.constData(), &info) != 0)
- mkdir(temp.constData(), (-1));
+ _mkdir(temp.constData());
temp += '/';
}
if (node != NULL){
temp += node;
if (stat(temp.data(), &info) != 0)
- mkdir(temp.data(), -1);
+ _mkdir(temp.data());
temp += '/';
}
if (!withSeparator)
#ifdef __linux__
#include <unistd.h>
#else
+#include <io.h>
+#include <direct.h>
#endif
#include <QThread>
#include <QIODevice>
#define _strcasecmp strcasecmp
#define OS_SEPARATOR '/'
#define OS_SEPARATOR_STR "/"
+#define _mkdir(path) mkdir(path, -1)
+#define _memicmp memicmp
#else
#define _strcasecmp _stricmp
#define OS_SEPARATOR '\\'