mirror of
https://github.com/json-c/json-c.git
synced 2026-04-01 19:39:07 +08:00
Fix some Windows compile issues, add JSON_EXPORT's, fix bogus character escapes, define __func__ and omit unistd.h if needed.
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
static void test_basic_printbuf_memset(void);
|
||||
static void test_printbuf_memset_length(void);
|
||||
|
||||
#ifndef __func__
|
||||
/* VC++ compat */
|
||||
#define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
static void test_basic_printbuf_memset()
|
||||
{
|
||||
struct printbuf *pb;
|
||||
@@ -158,7 +163,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int before_resize = 0;
|
||||
|
||||
mc_set_debug(1);
|
||||
MC_SET_DEBUG(1);
|
||||
|
||||
test_basic_printbuf_memset();
|
||||
printf("========================================\n");
|
||||
|
||||
Reference in New Issue
Block a user