mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Patch #1006003: Cygwin standard module build problems
Add missing PyAPI_FUNC/PyAPI_DATA macros.
This commit is contained in:
parent
7f203b847b
commit
0d2a75c7b8
2 changed files with 4 additions and 3 deletions
|
|
@ -6,9 +6,9 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
double PyOS_ascii_strtod(const char *str, char **ptr);
|
PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);
|
||||||
double PyOS_ascii_atof(const char *str);
|
PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);
|
||||||
char * PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);
|
PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, int buf_len, const char *format, double d);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,7 @@ PyAPI_FUNC(void) PyOS_FiniInterrupts(void);
|
||||||
PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *);
|
PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *);
|
||||||
PyAPI_DATA(int) (*PyOS_InputHook)(void);
|
PyAPI_DATA(int) (*PyOS_InputHook)(void);
|
||||||
PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *);
|
PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, char *);
|
||||||
|
PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
|
||||||
|
|
||||||
/* Stack size, in "pointers" (so we get extra safety margins
|
/* Stack size, in "pointers" (so we get extra safety margins
|
||||||
on 64-bit platforms). On a 32-bit platform, this translates
|
on 64-bit platforms). On a 32-bit platform, this translates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue