Skip to content

Commit 96b4e9d

Browse files
committed
fix build against musl
1 parent d919aea commit 96b4e9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jshon.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ static json_t *compat_json_loads(const char *input, json_error_t *error)
9292
#include <stdarg.h>
9393

9494
#ifdef _WIN32
95-
typedef unsigned int uint;
9695
// Avoid no-declared error for mingw/gcc with -std=c99.
9796
extern int fileno(FILE*);
9897
extern char* strdup(const char*);
@@ -212,7 +211,7 @@ typedef struct
212211
{
213212
void* itr; // object iterator
214213
json_t** stk; // stack reentry
215-
uint lin; // array iterator
214+
unsigned int lin; // array iterator
216215
int opt; // optind reentry
217216
int fin; // finished iteration
218217
} mapping;

0 commit comments

Comments
 (0)