Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions fpconv.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* Longest double printed with %.14g is 21 characters long:
* -1.7976931348623e+308 */
# define FPCONV_G_FMT_BUFSIZE 32
#ifdef _WIN32
#define inline __inline
#define snprintf _snprintf
#endif

#ifdef USE_INTERNAL_FPCONV
static inline void fpconv_init()
Expand Down
4 changes: 4 additions & 0 deletions lua_cjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
#define DEFAULT_DECODE_INVALID_NUMBERS 0
#endif

#ifdef _WIN32
#define strncasecmp _strnicmp
#endif

typedef enum {
T_OBJ_BEGIN,
T_OBJ_END,
Expand Down
3 changes: 3 additions & 0 deletions strbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

#include <stdlib.h>
#include <stdarg.h>
#ifdef _WIN32
#define inline __inline
#endif

/* Size: Total bytes allocated to *buf
* Length: String length, excluding optional NULL terminator.
Expand Down