summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-15 08:09:36 +0000
committermidipix <writeonce@midipix.org>2021-06-15 08:13:43 +0000
commit21a5c40a8d975028f1ceddd2b00078e02eb56f4c (patch)
tree721205da07df03f157f44b7ea2d37f9ca0fb0876 /profiles
parent6213a0b2c646da640368a8b233fb0c93a994e3ea (diff)
downloadsbpython2-21a5c40a8d975028f1ceddd2b00078e02eb56f4c.tar.bz2
sbpython2-21a5c40a8d975028f1ceddd2b00078e02eb56f4c.tar.xz
profiles/osapi/modern.h: enforce use of the standard va_copy interface.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/osapi/linux.h3
-rw-r--r--profiles/osapi/modern.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/profiles/osapi/linux.h b/profiles/osapi/linux.h
index 692bfac..e0d436a 100644
--- a/profiles/osapi/linux.h
+++ b/profiles/osapi/linux.h
@@ -24,7 +24,4 @@
#define TANH_PRESERVES_ZERO_SIGN 1
#define TIME_WITH_SYS_TIME 1
-/* compiler, toolchain, and abi */
-#define VA_LIST_IS_ARRAY 1
-
#endif
diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h
index 3cbea8c..8bd794c 100644
--- a/profiles/osapi/modern.h
+++ b/profiles/osapi/modern.h
@@ -1,6 +1,8 @@
#ifndef PY_OSAPI_MODERN_H
#define PY_OSAPI_MODERN_H
+#include <stdarg.h>
+
/* atomics */
#ifdef __ATOMIC_ACQUIRE
#define HAVE_BUILTIN_ATOMIC 1
@@ -287,6 +289,10 @@
#define HAVE_GCC_ASM_FOR_X87 1
#endif
+#ifndef __va_copy
+#define __va_copy va_copy
+#endif
+
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
#define _FILE_OFFSET_BITS 64