From 6185af72270e5895f5d789e1ec497af8ce75e964 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 8 Dec 2018 17:20:24 -0500 Subject: [PATCH] Try to remove build issues on windows. --- src/core/corelib.c | 2 +- src/mainclient/main.c | 2 +- src/tools/xxd.c | 6 +++--- src/webclient/main.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index 121946e4..0190e698 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -27,7 +27,7 @@ /* Generated bytes */ extern const unsigned char *janet_gen_core; -extern size_t janet_gen_core_size; +extern int32_t janet_gen_core_size; /* Use LoadLibrary on windows or dlopen on posix to load dynamic libaries * with native code. */ diff --git a/src/mainclient/main.c b/src/mainclient/main.c index 6fbbdd5d..294cd7f1 100644 --- a/src/mainclient/main.c +++ b/src/mainclient/main.c @@ -24,7 +24,7 @@ #include "line.h" extern const unsigned char *janet_gen_init; -extern size_t janet_gen_init_size; +extern int32_t janet_gen_init_size; int main(int argc, char **argv) { int i, status; diff --git a/src/tools/xxd.c b/src/tools/xxd.c index 4529912c..2f8cfcfb 100644 --- a/src/tools/xxd.c +++ b/src/tools/xxd.c @@ -36,7 +36,7 @@ int main(int argc, const char **argv) { static const char hex[] = "0123456789ABCDEF"; char buf[BUFSIZE]; size_t bytesRead = 0; - size_t totalRead = 0; + int32_t totalRead = 0; int lineIndex = 0; int line = 0; @@ -59,7 +59,7 @@ int main(int argc, const char **argv) { } /* Write the header */ - fprintf(out, "/* Auto generated - DO NOT EDIT */\n\n#include \n\n"); + fprintf(out, "/* Auto generated - DO NOT EDIT */\n\n#include \n\n"); fprintf(out, "static const unsigned char bytes[] = {"); /* Read in chunks from buffer */ @@ -94,7 +94,7 @@ int main(int argc, const char **argv) { fprintf(out, "const unsigned char *%s = bytes;\n\n", argv[3]); /* Write chunk size */ - fprintf(out, "size_t %s_size = %ld;\n", argv[3], totalRead); + fprintf(out, "int32_t %s_size = %d;\n", argv[3], totalRead); /* Close the file handles */ fclose(in); diff --git a/src/webclient/main.c b/src/webclient/main.c index fefc5089..41a7013b 100644 --- a/src/webclient/main.c +++ b/src/webclient/main.c @@ -24,7 +24,7 @@ #include extern const unsigned char *janet_gen_webinit; -extern size_t janet_gen_webinit_size; +extern int32_t janet_gen_webinit_size; static JanetFiber *repl_fiber = NULL; static JanetBuffer *line_buffer = NULL;