Commit dbbef89d authored by Michael Abrahams's avatar Michael Abrahams

Fix isnan compiler defines in mingw builds

Summary: Move some definitions from all Windows builds to MSVC-only.

Differential Revision: https://phabricator.kde.org/D158
parent 6de74cb4
......@@ -50,8 +50,10 @@
#ifdef Q_OS_WIN
#include <float.h>
#ifndef __MINGW32__
#define isnan _isnan
#endif
#endif
struct KisPaintOp::Private {
Private(KisPaintOp *_q)
......
......@@ -29,8 +29,10 @@
#ifdef Q_OS_WIN
#include <float.h>
#ifndef __MINGW32__
#define isnan _isnan
#endif
#endif
struct KisCageTransformWorker::Private
{
......
......@@ -27,8 +27,10 @@
#ifdef Q_OS_WIN
#include <float.h>
#ifndef __MINGW32__
#define isnan _isnan
#endif
#endif
struct KisRectangleMaskGenerator::Private {
double m_c;
......
......@@ -29,8 +29,10 @@
#ifdef Q_OS_WIN
#include <float.h>
#ifndef __MINGW32__
#define isnan _isnan
#endif
#endif
// #define DEBUG_VALIDATOR
// #define DEBUG_VALUEFROMTEXT
......
......@@ -116,7 +116,6 @@ static int gethostname(char *__name, size_t __len) {
#if _MSC_VER < 1600
#define ENOTSUP ENOSYS
#endif
typedef int mode_t;
typedef unsigned int gid_t;
typedef unsigned int uid_t;
......@@ -125,7 +124,8 @@ typedef unsigned int uid_t;
typedef long long int pid_t;
/* "long long int" is an alternative to __int64 */
#else
typedef int pid_t;
typedef int mode_t;
typedef int pid_t;
#endif
......
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