Skip to content

Commit c32e1d0

Browse files
author
guido
committed
Add DL_EXPORT() to all modules that could possibly be used
on BeOS or Windows. git-svn-id: http://svn.python.org/projects/python/trunk@12087 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a244977 commit c32e1d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+47
-46
lines changed

Modules/_cursesmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ static PyMethodDef PyCurses_methods[] = {
15221522

15231523
/* Initialization function for the module */
15241524

1525-
void
1525+
DL_EXPORT(void)
15261526
initcurses()
15271527
{
15281528
PyObject *m, *d, *v;

Modules/_localemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
309309
{NULL, NULL}
310310
};
311311

312-
void
312+
DL_EXPORT(void)
313313
init_locale()
314314
{
315315
PyObject *m,*d,*x;

Modules/_tkinter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ ins_string(d, name, val)
20062006
}
20072007

20082008

2009-
void
2009+
DL_EXPORT(void)
20102010
init_tkinter()
20112011
{
20122012
PyObject *m, *d;

Modules/arraymodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ statichere PyTypeObject Arraytype = {
14571457
arraytype_doc, /*tp_doc*/
14581458
};
14591459

1460-
void
1460+
DL_EXPORT(void)
14611461
initarray()
14621462
{
14631463
PyObject *m, *d;

Modules/audioop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ static PyMethodDef audioop_methods[] = {
14021402
{ 0, 0 }
14031403
};
14041404

1405-
void
1405+
DL_EXPORT(void)
14061406
initaudioop()
14071407
{
14081408
PyObject *m, *d;

Modules/binascii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ static struct PyMethodDef binascii_module_methods[] = {
742742
/* Initialization function for the module (*must* be called initbinascii) */
743743
static char doc_binascii[] = "Conversion between binary data and ASCII";
744744

745-
void
745+
DL_EXPORT(void)
746746
initbinascii()
747747
{
748748
PyObject *m, *d, *x;

Modules/bsddbmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static PyMethodDef bsddbmodule_methods[] = {
865865
{0, 0},
866866
};
867867

868-
void
868+
DL_EXPORT(void)
869869
initbsddb() {
870870
PyObject *m, *d;
871871

Modules/cStringIO.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ static struct PycStringIO_CAPI CAPI = {
589589
&Otype,
590590
};
591591

592-
void
592+
DL_EXPORT(void)
593593
initcStringIO() {
594594
PyObject *m, *d, *v;
595595

Modules/cmathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static PyMethodDef cmath_methods[] = {
301301
{NULL, NULL} /* sentinel */
302302
};
303303

304-
void
304+
DL_EXPORT(void)
305305
initcmath()
306306
{
307307
PyObject *m, *d, *v;

Modules/cryptmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static PyMethodDef crypt_methods[] = {
2727
{NULL, NULL} /* sentinel */
2828
};
2929

30-
void
30+
DL_EXPORT(void)
3131
initcrypt()
3232
{
3333
Py_InitModule("crypt", crypt_methods);

0 commit comments

Comments
 (0)