summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-02-28 16:44:18 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-02-28 16:44:18 (GMT)
commit5687ffe0c56a827b538589fc46e79dfacfd857f3 (patch)
tree7ba35f863ceb5b55c492ee3c61e5fc4bdac2e1f0 /Modules
parentc6cecf55d182344c316999acb8703293439319b7 (diff)
downloadcpython-5687ffe0c56a827b538589fc46e79dfacfd857f3.zip
cpython-5687ffe0c56a827b538589fc46e79dfacfd857f3.tar.gz
cpython-5687ffe0c56a827b538589fc46e79dfacfd857f3.tar.bz2
SF patch 404928: Support for next Cygwin gcc (2.95.2-8)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sre.c5
-rw-r--r--Modules/gdbmmodule.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index 3d4054a..63e4ef3 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2369,10 +2369,7 @@ static PyMethodDef _functions[] = {
{NULL, NULL}
};
-void
-#if defined(WIN32)
-__declspec(dllexport)
-#endif
+DL_EXPORT(void)
init_sre(void)
{
PyObject* m;
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c
index 91bebbd..5f83a28 100644
--- a/Modules/gdbmmodule.c
+++ b/Modules/gdbmmodule.c
@@ -11,7 +11,7 @@
#include <fcntl.h>
#include "gdbm.h"
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
#include "gdbmerrno.h"
extern const char * gdbm_strerror(gdbm_error);
#endif