diff --git a/README.md b/README.md index acf0acf..e133307 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,10 @@ Then as root or in a virtualenv: python setup.py install +On OS X, you may need to add the taglib header folder into the include path, similar to the following example: + + CPATH=:/usr/local/Cellar/taglib/1.9.1/include/taglib python setup.py install + Usage ----- diff --git a/echoprint.cpp b/echoprint.cpp index 25a32f5..dd2de5f 100644 --- a/echoprint.cpp +++ b/echoprint.cpp @@ -2,6 +2,10 @@ #include #include +#ifndef uint +define uint unsigned int +#endif + static PyObject * echoprint_codegen(PyObject *self, PyObject *args) { PyObject *py_samples; int start_offset = 0; diff --git a/libcodegen/File.h b/libcodegen/File.h index e277f34..d1732ad 100644 --- a/libcodegen/File.h +++ b/libcodegen/File.h @@ -9,6 +9,8 @@ #include #ifdef _WIN32 #include "win_unistd.h" +#else +#include "unistd.h" #endif /* This makes file writing a bit easier (makes sure we don't forget to fclose, basically). Use it like this: