mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add DL_IMPORT(returntype) for all officially exported functions.
This commit is contained in:
parent
b241b67b89
commit
43466ec7b0
44 changed files with 401 additions and 398 deletions
|
@ -62,12 +62,12 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "pydebug.h"
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
void PySys_WriteStdout(const char *format, ...);
|
||||
void PySys_WriteStderr(const char *format, ...);
|
||||
DL_IMPORT(void) PySys_WriteStdout(const char *format, ...);
|
||||
DL_IMPORT(void) PySys_WriteStderr(const char *format, ...);
|
||||
#else
|
||||
/* Better to have no prototypes at all for varargs functions in this case */
|
||||
void PySys_WriteStdout();
|
||||
void PySys_WriteStderr();
|
||||
DL_IMPORT(void) PySys_WriteStdout();
|
||||
DL_IMPORT(void) PySys_WriteStderr();
|
||||
#endif
|
||||
|
||||
#define addarc _Py_addarc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue