aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-08-01 10:39:50 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2022-08-01 11:19:10 +0200
commit9aa0225352cada0c7957f4310b9be9d3d0922f56 (patch)
tree3ba3f70a3d4d31a3deffb85bf87abce0f25a69cf /sources
parent12b6747cd9cf7eee0f964966c5fe9df76b3227d5 (diff)
Fix build error on Windows caused by macro copysign in CPython
Remove the define, fixing: qjsprimitivevalue.h(805): error C2039: '_copysign': is not a member of 'std' Pick-to: 6.3 6.2 Change-Id: Iad9b467decc81a3eed534f49d26e30237eef23de Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside6/libpysideqml/pysideqmlmetacallerror.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/pyside6/libpysideqml/pysideqmlmetacallerror.cpp b/sources/pyside6/libpysideqml/pysideqmlmetacallerror.cpp
index 823368719..8e1381a4e 100644
--- a/sources/pyside6/libpysideqml/pysideqmlmetacallerror.cpp
+++ b/sources/pyside6/libpysideqml/pysideqmlmetacallerror.cpp
@@ -7,6 +7,12 @@
#include <sbkstring.h>
#include <autodecref.h>
+// Remove deprecated MACRO of copysign for MSVC #86286
+// https://github.com/python/cpython/issues/86286
+#ifdef copysign
+# undef copysign
+#endif
+
#include <QtCore/QObject>
#include <QtCore/QString>