Skip to content

Instantly share code, notes, and snippets.

@breedx2
Created April 26, 2015 22:05
Show Gist options
  • Save breedx2/b86075d810dcad26ccf0 to your computer and use it in GitHub Desktop.
Save breedx2/b86075d810dcad26ccf0 to your computer and use it in GitHub Desktop.
uthash include for external dep
diff --git a/Makefile b/Makefile
index e84074c..3cd0a7d 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ HELPPATCHES = json-help.pd urlparams-help.pd rest-help.pd
#
#------------------------------------------------------------------------------#
-ALL_CFLAGS = -I"$(PD_INCLUDE)" -std=c99
+ALL_CFLAGS = -I"/usr/include" -I"$(PD_INCLUDE)" -std=c99
ALL_LDFLAGS =
SHARED_LDFLAGS =
ALL_LIBS = -lcurl -ljson-c -loauth
diff --git a/src/json-encode.c b/src/json-encode.c
index 9eff646..d166a1c 100644
--- a/src/json-encode.c
+++ b/src/json-encode.c
@@ -33,7 +33,7 @@ THE SOFTWARE.
#include <stdio.h>
#include <math.h>
-#include "uthash/src/uthash.h"
+#include <uthash.h>
#include "inc/string.c"
#include "inc/kvp.c"
diff --git a/src/urlparams.c b/src/urlparams.c
index a73e3e2..76eadde 100644
--- a/src/urlparams.c
+++ b/src/urlparams.c
@@ -31,7 +31,7 @@ THE SOFTWARE.
#include "urlparams.h"
#include <math.h>
-#include "uthash/src/uthash.h"
+#include <uthash.h>
#include "inc/string.c"
#include "inc/kvp.c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment