xref: /OK3568_Linux_fs/buildroot/package/poco/0002-Add-support-for-m68000-1856.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 221e308ad452035f4c1dc25e194f817a30f38f7b Mon Sep 17 00:00:00 2001
2From: Jochen Sprickerhof <github@jochen.sprickerhof.de>
3Date: Wed, 23 Aug 2017 16:50:51 +0200
4Subject: [PATCH] Add support for m68000 (#1856)
5
6Originally taken from
7
8https://github.com/google/double-conversion/commit/da11179623145f53b204105a93b8bbca431141da
9
10Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
11[Julien: rebased on version 1.10.1]
12Signed-off-by: Julien Olivain <juju@cotds.org>
13---
14 Foundation/src/utils.h | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/Foundation/src/utils.h b/Foundation/src/utils.h
18index c87cee13c..e891c0f10 100644
19--- a/Foundation/src/utils.h
20+++ b/Foundation/src/utils.h
21@@ -66,6 +66,8 @@
22 	defined(__AARCH64EL__) || \
23     defined(nios2) || defined(__nios2) || defined(__nios2__)
24 #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
25+#elif defined(__mc68000__)
26+#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
27 #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
28 #if defined(_WIN32)
29 // Windows uses a 64bit wide floating point stack.
30--
312.26.2
32
33