File: fix_m68k.patch

package info (click to toggle)
double-conversion 3.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,332 kB
  • sloc: cpp: 322,760; makefile: 54; sh: 21
file content (20 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Support m68k
Bug-Debian: https://bugs.debian.org/699849
Author: Thorsten Glaser <tg@mirbsd.de>
Reviewed-by: Sébastien Villemot <sebastien@debian.org>
Last-Update: 2015-04-30

Index: double-conversion/double-conversion/utils.h
===================================================================
--- double-conversion.orig/double-conversion/utils.h
+++ double-conversion/double-conversion/utils.h
@@ -155,6 +155,9 @@ int main(int argc, char** argv) {
 #else
 #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
 #endif  // _WIN32
+#elif defined(__m68k__)
+// The MC68881 also uses an 80bit wide floating point stack.
+#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
 #else
 #error Target architecture was not detected as supported by Double-Conversion.
 #endif