mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-01 05:52:37 +07:00
Enable build and test on Windows
This commit is contained in:
+7
-1
@@ -34,9 +34,15 @@ static void *failing_malloc(size_t size)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* work around MSVC error C2322: '...' address of dillimport '...' is not static */
|
||||
static void CJSON_CDECL normal_free(void *pointer)
|
||||
{
|
||||
free(pointer);
|
||||
}
|
||||
|
||||
static cJSON_Hooks failing_hooks = {
|
||||
failing_malloc,
|
||||
free
|
||||
normal_free
|
||||
};
|
||||
|
||||
static void cjson_add_null_should_add_null(void)
|
||||
|
||||
Reference in New Issue
Block a user