quick hack to make hash tables from uthash compile on embedded systems

This commit is contained in:
Olaf Bergmann committed 2011-12-11 16:11:31 +01:00
1 parent bf2ef64850
commit 9af40a95c5
2 files changed
+4

No files matched your search

+2
View File
@@ -7,6 +7,8 @@
#define WITH_CONTIKI 1
#define uthash_fatal(msg) return
#define DEBUG 0
#define HAVE_STRNLEN 1
#define HAVE_SNPRINTF 1
+2
View File
@@ -64,7 +64,9 @@ typedef unsigned int uint32_t;
#define UTHASH_VERSION 1.9.3
#ifndef uthash_fatal
#define uthash_fatal(msg) exit(-1) /* fatal error (out of memory,etc) */
#endif
#define uthash_malloc(sz) malloc(sz) /* malloc fcn */
#define uthash_free(ptr,sz) free(ptr) /* free fcn */