diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/Python.h | 2 | ||||
-rw-r--r-- | Include/pyport.h | 12 |
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 */ |