Changeset f7e30e8


Ignore:
Timestamp:
Dec 18, 2016, 11:26:58 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
cb76f5d
Parents:
2d00e5c
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubiomodule.c

    r2d00e5c rf7e30e8  
    22#include "aubio-types.h"
    33#include "py-musicutils.h"
     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
    48
    59static char aubio_module_doc[] = "Python module for the aubio library";
     
    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
Note: See TracChangeset for help on using the changeset viewer.