Commit 5a7edee3 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

kioslaves: Fix build with MSVC

parent 22624eed
......@@ -22,6 +22,14 @@
#include <QCommandLineParser>
#include <QCommandLineOption>
#ifdef Q_OS_WIN
// see kio/core/src/kioglobal_p.h
#define S_IRUSR 0400
#define S_IRGRP 0040
#define S_IROTH 0004
#endif
extern "C" {
int Q_DECL_EXPORT kdemain(int argc, char **argv);
}
......
......@@ -28,6 +28,19 @@ extern "C" {
#include <kio/slaveinterface.h>
#include <string.h>
#ifdef _MSC_VER
#define strcasecmp _stricmp
#endif
#ifdef Q_OS_WIN
// See kio/src/core/kioglobal_p.h
#define S_IRUSR 0400
#define S_IWUSR 0200
#define S_IXUSR 0100
#endif
#define GREETING_BUF_LEN 1024
#define MAX_RESPONSE_LEN 512
#define MAX_COMMANDS 10
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment