From 53a07a6d287ecdd3a9831dd3778676edf6ee8a9e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 16 Apr 2012 23:10:26 +0200 Subject: srd: Quickfix for MinGW build issue. --- controller.c | 3 ++- module_sigrokdecode.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- cgit v1.2.3-70-g09d2