return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
}
-static void *(*cJSON_malloc)(size_t sz);
-static void (*cJSON_free)(void *ptr);
+static void *glue_malloc(size_t theSize) \r
+{ \r
+ return(malloc(theSize)); \r
+} \r
+\r
+static void glue_free(void *thePtr) \r
+{ \r
+ free(thePtr); \r
+} \r
+
+static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
+static void (*cJSON_free)(void *ptr) = glue_free;
static char* cJSON_strdup(const char* str)
{
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
}
-static void *(*cJSON_malloc)(size_t sz);
-static void (*cJSON_free)(void *ptr);
+static void *glue_malloc(size_t theSize) \r
+{ \r
+ return(malloc(theSize)); \r
+} \r
+\r
+static void glue_free(void *thePtr) \r
+{ \r
+ free(thePtr); \r
+} \r
+
+static void *(*cJSON_malloc)(size_t sz) = glue_malloc;
+static void (*cJSON_free)(void *ptr) = glue_free;
static char* cJSON_strdup(const char* str)
{