Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5687ffe

Browse files
committed
SF patch 404928: Support for next Cygwin gcc (2.95.2-8)
1 parent c6cecf5 commit 5687ffe

3 files changed

Lines changed: 4 additions & 13 deletions

File tree

Modules/_sre.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,10 +2369,7 @@ static PyMethodDef _functions[] = {
23692369
{NULL, NULL}
23702370
};
23712371

2372-
void
2373-
#if defined(WIN32)
2374-
__declspec(dllexport)
2375-
#endif
2372+
DL_EXPORT(void)
23762373
init_sre(void)
23772374
{
23782375
PyObject* m;

Modules/gdbmmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <fcntl.h>
1212
#include "gdbm.h"
1313

14-
#ifdef WIN32
14+
#if defined(WIN32) && !defined(__CYGWIN__)
1515
#include "gdbmerrno.h"
1616
extern const char * gdbm_strerror(gdbm_error);
1717
#endif

Python/exceptions.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,10 +1042,7 @@ static struct {
10421042

10431043

10441044

1045-
void
1046-
#ifdef WIN32
1047-
__declspec(dllexport)
1048-
#endif /* WIN32 */
1045+
DL_EXPORT(void)
10491046
init_exceptions(void)
10501047
{
10511048
char *modulename = "exceptions";
@@ -1128,10 +1125,7 @@ init_exceptions(void)
11281125
}
11291126

11301127

1131-
void
1132-
#ifdef WIN32
1133-
__declspec(dllexport)
1134-
#endif /* WIN32 */
1128+
DL_EXPORT(void)
11351129
fini_exceptions(void)
11361130
{
11371131
int i;

0 commit comments

Comments
 (0)