mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
Now compiles with mingw; added makefile for windows.
This commit is contained in:
parent
dd66080aaf
commit
db879bd626
2 changed files with 20 additions and 1 deletions
19
Makefile_win
Normal file
19
Makefile_win
Normal file
|
@ -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
|
2
gmqcc.h
2
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 */
|
||||
|
|
Loading…
Reference in a new issue