{"action":"opened","issue":{"url":"https://api.github.com/repos/residuum/PuRestJson/issues/39","labels_url":"https://api.github.com/repos/residuum/PuRestJson/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/residuum/PuRestJson/issues/39/comments","events_url":"https://api.github.com/repos/residuum/PuRestJson/issues/39/events","html_url":"https://github.com/residuum/PuRestJson/issues/39","id":125775388,"number":39,"title":"specify path to uthash via compiler flags","user":{"login":"umlaeute","id":214034,"avatar_url":"https://avatars.githubusercontent.com/u/214034?v=3","gravatar_id":"","url":"https://api.github.com/users/umlaeute","html_url":"https://github.com/umlaeute","followers_url":"https://api.github.com/users/umlaeute/followers","following_url":"https://api.github.com/users/umlaeute/following{/other_user}","gists_url":"https://api.github.com/users/umlaeute/gists{/gist_id}","starred_url":"https://api.github.com/users/umlaeute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umlaeute/subscriptions","organizations_url":"https://api.github.com/users/umlaeute/orgs","repos_url":"https://api.github.com/users/umlaeute/repos","events_url":"https://api.github.com/users/umlaeute/events{/privacy}","received_events_url":"https://api.github.com/users/umlaeute/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-09T19:08:56Z","updated_at":"2016-01-09T19:08:56Z","closed_at":null,"body":"currently the path to the (included) `uthash.h` header is hardcoded in `./src/json-encode.c` resp. `./src/urlparams.c`:\r\n\r\n     #include \"uthash/src/uthash.h\"\r\n\r\nthis 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`)\r\n\r\na more generic approach would be to use:\r\n\r\n    #include \"uthash.h\"\r\n\r\nin the source-code and add the path to the build-flags (in `Makefile`):\r\n\r\n    ALL_CFLAGS = -I\"$(PD_INCLUDE)\" -Iuthash/src -std=c99\r\n"}}