From: Uwe Hermann Date: Mon, 16 Apr 2012 21:10:26 +0000 (+0200) Subject: srd: Quickfix for MinGW build issue. X-Git-Tag: libsigrokdecode-0.1.0~2 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=53a07a6d287ecdd3a9831dd3778676edf6ee8a9e;p=libsigrokdecode.git srd: Quickfix for MinGW build issue. --- diff --git a/controller.c b/controller.c index 8a01d32..5d19e7a 100644 --- a/controller.c +++ b/controller.c @@ -35,7 +35,8 @@ static GSList *callbacks = NULL; extern SRD_PRIV GSList *pd_list; /* module_sigrokdecode.c */ -extern SRD_PRIV PyMODINIT_FUNC PyInit_sigrokdecode(void); +/* FIXME: SRD_PRIV causes issues on MinGW. Investigate. */ +extern PyMODINIT_FUNC PyInit_sigrokdecode(void); /* type_logic.c */ extern SRD_PRIV PyTypeObject srd_logic_type; diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index 900f7fd..a76645c 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -40,7 +40,8 @@ static struct PyModuleDef sigrokdecode_module = { .m_size = -1, }; -SRD_PRIV PyMODINIT_FUNC PyInit_sigrokdecode(void) +/* FIXME: SRD_PRIV causes issues on MinGW. Investigate. */ +PyMODINIT_FUNC PyInit_sigrokdecode(void) { PyObject *mod;