From: Dale Weiler Date: Fri, 27 Apr 2012 03:23:31 +0000 (-0400) Subject: Now compiles with mingw; added makefile for windows. X-Git-Tag: 0.1-rc1~587^2 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=db879bd626af0003840ee32df41cf17714680ac8 Now compiles with mingw; added makefile for windows. --- 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 */