srd: Quickfix for MinGW build issue.
[libsigrokdecode.git] / module_sigrokdecode.c
index 0fe109619f17227ff908ac73b0e5f486b2931fff..a76645c582c6e205912d03d6f4299eb069551303 100644 (file)
@@ -40,11 +40,12 @@ static struct PyModuleDef sigrokdecode_module = {
        .m_size = -1,
 };
 
        .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;
 
 {
        PyObject *mod;
 
-       /* tp_new needs to be assigned here for compiler portability */
+       /* tp_new needs to be assigned here for compiler portability. */
        srd_Decoder_type.tp_new = PyType_GenericNew;
        if (PyType_Ready(&srd_Decoder_type) < 0)
                return NULL;
        srd_Decoder_type.tp_new = PyType_GenericNew;
        if (PyType_Ready(&srd_Decoder_type) < 0)
                return NULL;