summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-05-22 09:15:18 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-05-22 09:15:18 (GMT)
commita43190bc789bebfef15fb2b82f94a19a6bc80000 (patch)
treef0420e334066fe66b8c03a4931f5a2ddcb238342 /Include
parentf90347fdbb9a30468c41b52dd61151880247b4c7 (diff)
downloadcpython-a43190bc789bebfef15fb2b82f94a19a6bc80000.zip
cpython-a43190bc789bebfef15fb2b82f94a19a6bc80000.tar.gz
cpython-a43190bc789bebfef15fb2b82f94a19a6bc80000.tar.bz2
Patch #1492356: Port to Windows CE (patch set 1).
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h2
-rw-r--r--Include/pyport.h12
2 files changed, 14 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 8df7dbc..aed1b7b 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -35,7 +35,9 @@
#endif
#include <string.h>
+#ifndef DONT_HAVE_ERRNO_H
#include <errno.h>
+#endif
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
diff --git a/Include/pyport.h b/Include/pyport.h
index 2bce415..df44be6 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -685,4 +685,16 @@ typedef struct fd_set {
#pragma error_messages (off,E_END_OF_LOOP_CODE_NOT_REACHED)
#endif
+/*
+ * Older Microsoft compilers don't support the C99 long long literal suffixes,
+ * so these will be defined in PC/pyconfig.h for those compilers.
+ */
+#ifndef Py_LL
+#define Py_LL(x) x##LL
+#endif
+
+#ifndef Py_ULL
+#define Py_ULL(x) Py_LL(x##U)
+#endif
+
#endif /* Py_PYPORT_H */