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
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
5static char aubio_module_doc[] = "Python module for the aubio library";9static char aubio_module_doc[] = "Python module for the aubio library";
6 10
7static char Py_alpha_norm_doc[] = ""11static 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 objects332 // add generated objects
329 add_generated_objects(m);333 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