Support default __stdcall calling convention (/Gz) on Windows

This commit is contained in:
Zach Hindes
2018-08-29 16:13:59 -05:00
parent 86234db095
commit f32703a7a1
3 changed files with 60 additions and 52 deletions

2
test.c
View File

@@ -256,7 +256,7 @@ static void create_objects(void)
cJSON_Delete(root);
}
int main(void)
int CJSON_CDECL main(void)
{
/* print the version */
printf("Version: %s\n", cJSON_Version());