summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-05 15:50:55 +0000
committermidipix <writeonce@midipix.org>2019-10-05 17:04:06 +0000
commit69c50b98dac2d2fa2d6a43c603fef58ee73fa3ba (patch)
tree46c3d3e8ed30fbfabf397f5b67a156e59351a40e /config
parentc6c2f328e84391ad5b8d95a315ccdae9d63f47f4 (diff)
downloadsbpython2-69c50b98dac2d2fa2d6a43c603fef58ee73fa3ba.tar.bz2
sbpython2-69c50b98dac2d2fa2d6a43c603fef58ee73fa3ba.tar.xz
config/*/pyconfig.h: add missing type definitions.
Diffstat (limited to 'config')
-rw-r--r--config/linux/pyconfig.h28
-rw-r--r--config/midipix/pyconfig.h28
2 files changed, 56 insertions, 0 deletions
diff --git a/config/linux/pyconfig.h b/config/linux/pyconfig.h
index b91d2f7..afbbf78 100644
--- a/config/linux/pyconfig.h
+++ b/config/linux/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
diff --git a/config/midipix/pyconfig.h b/config/midipix/pyconfig.h
index 2a93226..d3ff53e 100644
--- a/config/midipix/pyconfig.h
+++ b/config/midipix/pyconfig.h
@@ -7,4 +7,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