Enable build and test on Windows

This commit is contained in:
Zach Hindes
2018-09-04 14:36:21 -05:00
parent f32703a7a1
commit ad2cb5b7ea
5 changed files with 18 additions and 2 deletions
+7 -1
View File
@@ -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)