#include <Python.h>
#include "Quantuccia/ql/time/calendars/unitedstates.hpp"

static PyObject*
get_holiday_date(PyObject *self, PyObject *args)
{
    return NULL;
}
 
static PyMethodDef QuantucciaMethods[] = {
	{"get_holiday_date", (PyCFunction)get_holiday_date, METH_VARARGS, NULL},
	{NULL,     NULL}        /* Sentinel */
};

static struct PyModuleDef quantuccia_module_def = {
	PyModuleDef_HEAD_INIT,
	"quantuccia",
	NULL,
	-1,
	QuantucciaMethods,
};

PyObject* PyInit_pyQuantuccia(void){
    PyObject *m;
    m = PyCreate_Module(&quantuccia_module_def);
    return m;
}

#include <Python.h>
#include "Quantuccia/ql/time/calendars/unitedstates.hpp"

static PyObject*
get_holiday_date(PyObject *self, PyObject *args)
{
    return NULL;
}
 
static PyMethodDef QuantucciaMethods[] = {
	{"get_holiday_date", (PyCFunction)get_holiday_date, METH_VARARGS, NULL},
	{NULL,     NULL}        /* Sentinel */
};

PyObject* PyInit_pyQuantuccia(void){
    PyObject *m;
    m = PyCreate_Module("quantuccia", QuantucciaMethods);
    return m;
}

--- 
+++ 
@@ -12,8 +12,16 @@
 	{NULL,     NULL}        /* Sentinel */
 };
 
+static struct PyModuleDef quantuccia_module_def = {
+	PyModuleDef_HEAD_INIT,
+	"quantuccia",
+	NULL,
+	-1,
+	QuantucciaMethods,
+};
+
 PyObject* PyInit_pyQuantuccia(void){
     PyObject *m;
-    m = PyCreate_Module("quantuccia", QuantucciaMethods);
+    m = PyCreate_Module(&quantuccia_module_def);
     return m;
 }
Correct the way the module is defined.
