windows build fixes
This commit is contained in:
parent
22e60ee228
commit
d2fe432828
3
build.ps1
Normal file
3
build.ps1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
New-Item -ItemType Directory -Force -Path ./bin/
|
||||||
|
|
||||||
|
gcc -Wall -o ./bin/compile ./src/*.c ./src/parsers/*.c
|
|
@ -72,7 +72,7 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get length of file
|
// get length of file
|
||||||
fseek(input_file, -sizeof(char), SEEK_END);
|
fseek(input_file, (long)-sizeof(char), SEEK_END);
|
||||||
size_t length = ftell(input_file);
|
size_t length = ftell(input_file);
|
||||||
fseek(input_file, 0, SEEK_SET);
|
fseek(input_file, 0, SEEK_SET);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include "json.h"
|
#include "json.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue