From db879bd626af0003840ee32df41cf17714680ac8 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 26 Apr 2012 23:23:31 -0400 Subject: [PATCH] Now compiles with mingw; added makefile for windows. --- Makefile_win | 19 +++++++++++++++++++ gmqcc.h | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 Makefile_win diff --git a/Makefile_win b/Makefile_win new file mode 100644 index 0000000..dccce07 --- /dev/null +++ b/Makefile_win @@ -0,0 +1,19 @@ +CC = i486-mingw32-gcc +CFLAGS += -Wall +OBJ = main.o \ + lex.o \ + error.o \ + parse.o \ + typedef.o \ + util.o \ + code.o \ + asm.c + +%.o: %.c + $(CC) -c $< -o $@ $(CFLAGS) + +gmqcc: $(OBJ) + $(CC) -o $@ $^ $(CFLAGS) + +clean: + rm -f *.o gmqcc diff --git a/gmqcc.h b/gmqcc.h index 5b2b7bb..7eb8359 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -93,7 +93,7 @@ typedef char uint8_size_is_correct [sizeof(uint8_t) == 1?1:-1]; typedef char uint16_size_if_correct [sizeof(uint16_t) == 2?1:-1]; typedef char uint32_size_is_correct [sizeof(uint32_t) == 4?1:-1]; -typedef char int8_size_is_correct [sizeof(int8_t) == 1?1:-1]; +//typedef char int8_size_is_correct [sizeof(int8_t) == 1?1:-1]; typedef char int16_size_if_correct [sizeof(int16_t) == 2?1:-1]; typedef char int32_size_is_correct [sizeof(int32_t) == 4?1:-1]; /* intptr_t / uintptr_t correct size check */