]> granicus.if.org Git - python/commitdiff
Patch #1006003: Cygwin standard module build problems
authorJason Tishler <jason@tishler.net>
Mon, 9 Aug 2004 15:02:30 +0000 (15:02 +0000)
committerJason Tishler <jason@tishler.net>
Mon, 9 Aug 2004 15:02:30 +0000 (15:02 +0000)
Add missing PyAPI_FUNC/PyAPI_DATA macros.

Include/pystrtod.h
Include/pythonrun.h

index e4e5e5278b4c5f23c40e80cb91bfef5705d6f780..5314f269a1cae3d5feee9d4fe14f26bee5413f47 100644 (file)
@@ -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
index 746ba7ed93cc98e86064535d7cd1d319d7421e08..88ceea33385a0496efdf274274555624c5addc9f 100644 (file)
@@ -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