From ea484b03586610f589f766e69034487381dabd07 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Oct 2019 15:55:47 +0000 Subject: config/*/pyconfig.h: add missing type definitions. --- config/linux/pyconfig.h | 28 ++++++++++++++++++++++++++++ config/midipix/pyconfig.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) (limited to 'config') diff --git a/config/linux/pyconfig.h b/config/linux/pyconfig.h index 90430d2..6626449 100644 --- a/config/linux/pyconfig.h +++ b/config/linux/pyconfig.h @@ -9,4 +9,32 @@ /* cf. Modules/posixmodule.c */ #define HAVE_BROKEN_NICE 1 +#ifndef LONG_MAX +#define LONG_MAX __LONG_MAX__ +#endif + +#ifndef SIZEOF_VOID_P +#define SIZEOF_VOID_P __SIZEOF_POINTER__ +#endif + +#ifndef SIZEOF_INT +#define SIZEOF_INT __SIZEOF_INT__ +#endif + +#ifndef SIZEOF_LONG +#define SIZEOF_LONG __SIZEOF_LONG__ +#endif + +#ifndef SIZEOF_LONG_LONG +#define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__ +#endif + +#ifndef SIZEOF_SIZE_T +#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ +#endif + +#ifndef SIZEOF_PID_T +#define SIZEOF_PID_T __SIZEOF_INT__ +#endif + #endif diff --git a/config/midipix/pyconfig.h b/config/midipix/pyconfig.h index 72f12fd..076ba74 100644 --- a/config/midipix/pyconfig.h +++ b/config/midipix/pyconfig.h @@ -8,4 +8,32 @@ /* cf. Modules/posixmodule.c */ #define HAVE_BROKEN_NICE 1 +#ifndef LONG_MAX +#define LONG_MAX __LONG_MAX__ +#endif + +#ifndef SIZEOF_VOID_P +#define SIZEOF_VOID_P __SIZEOF_POINTER__ +#endif + +#ifndef SIZEOF_INT +#define SIZEOF_INT __SIZEOF_INT__ +#endif + +#ifndef SIZEOF_LONG +#define SIZEOF_LONG __SIZEOF_LONG__ +#endif + +#ifndef SIZEOF_LONG_LONG +#define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__ +#endif + +#ifndef SIZEOF_SIZE_T +#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__ +#endif + +#ifndef SIZEOF_PID_T +#define SIZEOF_PID_T __SIZEOF_INT__ +#endif + #endif -- cgit v1.2.3