55 lines
1.2 KiB
Diff
55 lines
1.2 KiB
Diff
|
--- src/radialMap/sincos.h 2018-05-06 06:10:38.000000000 +0200
|
||
|
+++ - 2018-05-25 01:24:06.234265312 +0200
|
||
|
@@ -21,10 +21,10 @@
|
||
|
|
||
|
#ifndef SINCOS_H
|
||
|
#define SINCOS_H
|
||
|
-
|
||
|
+#define _GNU_SOURCE
|
||
|
#include <math.h>
|
||
|
|
||
|
-#if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
||
|
+#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
||
|
|
||
|
#include <qmath.h>
|
||
|
|
||
|
--- src/localLister.cpp 2018-05-06 06:10:38.000000000 +0200
|
||
|
+++ - 2018-05-25 01:33:28.202631988 +0200
|
||
|
@@ -35,8 +35,10 @@
|
||
|
#ifdef Q_OS_SOLARIS
|
||
|
#include <sys/vfstab.h>
|
||
|
#elif !defined(Q_OS_WIN)
|
||
|
+#ifdef __GLIBC__
|
||
|
#include <fstab.h>
|
||
|
#endif
|
||
|
+#endif
|
||
|
#include <sys/stat.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <unistd.h>
|
||
|
--- src/radialMap/sincos.h 2018-05-25 01:30:46.775385798 +0200
|
||
|
+++ - 2018-05-25 01:34:59.788609200 +0200
|
||
|
@@ -23,23 +23,4 @@
|
||
|
#define SINCOS_H
|
||
|
#define _GNU_SOURCE
|
||
|
#include <math.h>
|
||
|
-
|
||
|
-#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)
|
||
|
-
|
||
|
-#include <qmath.h>
|
||
|
-
|
||
|
-void
|
||
|
-sincos(double angleRadians, double *Sin, double *Cos);
|
||
|
-
|
||
|
-#ifdef SINCOS_H_IMPLEMENTATION
|
||
|
-void
|
||
|
-sincos(double angleRadians, double *Sin, double *Cos)
|
||
|
-{
|
||
|
- *Sin = qSin(angleRadians);
|
||
|
- *Cos = qCos(angleRadians);
|
||
|
-}
|
||
|
-#endif
|
||
|
-
|
||
|
-#endif
|
||
|
-
|
||
|
#endif
|