diff --git a/Include/pystrtod.h b/Include/pystrtod.h index e4e5e5278b4..5314f269a1c 100644 --- a/Include/pystrtod.h +++ b/Include/pystrtod.h @@ -6,9 +6,9 @@ extern "C" { #endif -double PyOS_ascii_strtod(const char *str, char **ptr); -double PyOS_ascii_atof(const char *str); -char * PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); +PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr); +PyAPI_FUNC(double) PyOS_ascii_atof(const char *str); +PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d); #ifdef __cplusplus diff --git a/Include/pythonrun.h b/Include/pythonrun.h index 746ba7ed93c..88ceea33385 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -121,6 +121,7 @@ PyAPI_FUNC(void) PyOS_FiniInterrupts(void); PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *); PyAPI_DATA(int) (*PyOS_InputHook)(void); PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *); +PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState; /* Stack size, in "pointers" (so we get extra safety margins on 64-bit platforms). On a 32-bit platform, this translates