Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS X build support #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----

Expand Down
4 changes: 4 additions & 0 deletions echoprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include <Python.h>
#include <stdio.h>

#ifndef uint
define uint unsigned int
#endif

static PyObject * echoprint_codegen(PyObject *self, PyObject *args) {
PyObject *py_samples;
int start_offset = 0;
Expand Down
2 changes: 2 additions & 0 deletions libcodegen/File.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <string.h>
#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:
Expand Down