residuum / PuRestJson

PuREST JSON is a library for connecting Puredata (Pd) to HTTP services and encoding and decoding JSON data.
ix.residuum.org/pd/purest_json.html
Other
74 stars 9 forks source link

specify path to uthash via compiler flags #39

Closed umlaeute closed 8 years ago

umlaeute commented 8 years ago

currently the path to the (included) uthash.h header is hardcoded in ./src/json-encode.c resp. ./src/urlparams.c:

 #include "uthash/src/uthash.h"

this makes it hard to use an uthash implementation that lives in a different place. (e.g. when building from the tarballs (which lack the git submodule) and using e.g. the Debian-provided package uthash-dev)

a more generic approach would be to use:

#include "uthash.h"

in the source-code and add the path to the build-flags (in Makefile):

ALL_CFLAGS = -I"$(PD_INCLUDE)" -Iuthash/src -std=c99