Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -2,6 +2,10 @@ · 1 unmodified line | |||
| 2 | #include "aubio-types.h" | 2 | #include "aubio-types.h" |
| 3 | #include "py-musicutils.h" | 3 | #include "py-musicutils.h" |
| 4 | 4 | ||
| 5 | // this dummy macro is used to convince windows that a string passed as -D flag | ||
| 6 | // is just that, a string, and not a double. | ||
| 7 | #define DEFINEDSTRING(x) #x | ||
| 8 | |||
| 5 | static char aubio_module_doc[] = "Python module for the aubio library"; | 9 | static char aubio_module_doc[] = "Python module for the aubio library"; |
| 6 | 10 | ||
| 7 | static char Py_alpha_norm_doc[] = "" | 11 | static char Py_alpha_norm_doc[] = "" |
| @@ -323,7 +327,7 @@ initaubio (void) · 315 unmodified lines | |||
| 323 | PyModule_AddObject (m, "sink", (PyObject *) & Py_sinkType); | 327 | PyModule_AddObject (m, "sink", (PyObject *) & Py_sinkType); |
| 324 | 328 | ||
| 325 | PyModule_AddStringConstant(m, "float_type", AUBIO_NPY_SMPL_STR); | 329 | PyModule_AddStringConstant(m, "float_type", AUBIO_NPY_SMPL_STR); |
| 326 | PyModule_AddStringConstant(m, "__version__", AUBIO_VERSION); | 330 | PyModule_AddStringConstant(m, "__version__", DEFINEDSTRING(AUBIO_VERSION)); |
| 327 | 331 | ||
| 328 | // add generated objects | 332 | // add generated objects |
| 329 | add_generated_objects(m); | 333 | add_generated_objects(m); |