mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 08:25:47 +03:00
quick hack to make hash tables from uthash compile on embedded systems
This commit is contained in:
1 parent
bf2ef64850
commit
9af40a95c5
2 files changed
+4
No files matched your search
@@ -7,6 +7,8 @@
|
||||
|
||||
#define WITH_CONTIKI 1
|
||||
|
||||
#define uthash_fatal(msg) return
|
||||
|
||||
#define DEBUG 0
|
||||
#define HAVE_STRNLEN 1
|
||||
#define HAVE_SNPRINTF 1
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user