summaryrefslogtreecommitdiff
path: root/lang/python37/patches/patch-Modules___decimal_libmpdec_mpdecimal.h
blob: 14d58fefc2d5d64b8d8017d8df3f4fab8599b4f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-Modules___decimal_libmpdec_mpdecimal.h,v 1.1 2020/11/17 19:33:26 sjmulder Exp $

Support for macOS 11 and Apple Silicon (ARM). Mostly backported from:
https://github.com/python/cpython/pull/22855

--- Modules/_decimal/libmpdec/mpdecimal.h.orig	2020-08-15 05:20:16.000000000 +0000
+++ Modules/_decimal/libmpdec/mpdecimal.h
@@ -135,6 +135,9 @@ const char *mpd_version(void);
   #elif defined(__x86_64__)
     #define CONFIG_64
     #define ASM
+  #elif defined(__aarch64__)
+    #define CONFIG_64
+    #define ANSI
   #else
     #error "unknown architecture for universal build."
   #endif