From 21a5c40a8d975028f1ceddd2b00078e02eb56f4c Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 15 Jun 2021 08:09:36 +0000 Subject: profiles/osapi/modern.h: enforce use of the standard va_copy interface. --- profiles/osapi/modern.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'profiles/osapi/modern.h') 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 + /* 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 -- cgit v1.2.3