]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Now compiles with mingw; added makefile for windows.
authorDale Weiler <killfieldengine@gmail.com>
Fri, 27 Apr 2012 03:23:31 +0000 (23:23 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 27 Apr 2012 03:24:32 +0000 (23:24 -0400)
Makefile_win [new file with mode: 0644]
gmqcc.h

diff --git a/Makefile_win b/Makefile_win
new file mode 100644 (file)
index 0000000..dccce07
--- /dev/null
@@ -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 5b2b7bbb642c9a131fc7b0ddc0a21a0564b34c03..7eb835907115b3291371e3c75e90892457c517dc 100644 (file)
--- 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 */