History

python/ext/aubiomodule.c: fix version string on windows

Paul Brossier committed 9 years ago

Commit f7e30e81 parent 2d00e5c1 file · +5 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/aubiomodule.c+5−1
@@ -2,6 +2,10 @@ · 1 unmodified line
22 #include "aubio-types.h"
33 #include "py-musicutils.h"
44
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+
59 static char aubio_module_doc[] = "Python module for the aubio library";
610
711 static char Py_alpha_norm_doc[] = ""
@@ -323,7 +327,7 @@ initaubio (void) · 315 unmodified lines
323327 PyModule_AddObject (m, "sink", (PyObject *) & Py_sinkType);
324328
325329 PyModule_AddStringConstant(m, "float_type", AUBIO_NPY_SMPL_STR);
326− PyModule_AddStringConstant(m, "__version__", AUBIO_VERSION);
330+ PyModule_AddStringConstant(m, "__version__", DEFINEDSTRING(AUBIO_VERSION));
327331
328332 // add generated objects
329333 add_generated_objects(m);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t