Fixed portability problems with va_copy. In three places, calls to fstat
had to be replaced by calls to stat, because fileno is no longer available when forcing the compiler into pure c89 (or c99) mode. git-svn-id: svn://svn.cc65.org/cc65/trunk@3683 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -13,7 +13,7 @@ endif
|
||||
|
||||
|
||||
CC=gcc
|
||||
CFLAGS = -O2 -g -Wall -W -I$(COMMON) -D$(SPAWN)
|
||||
CFLAGS = -O2 -g -Wall -W -std=c89 -I$(COMMON) -D$(SPAWN)
|
||||
EBIND = emxbind
|
||||
LDFLAGS=
|
||||
|
||||
@@ -53,7 +53,7 @@ zap: clean
|
||||
.PHONY: depend dep
|
||||
depend dep: $(OBJS:.o=.c)
|
||||
@echo "Creating dependency information"
|
||||
$(CC) -I$(COMMON) -D$(SPAWN) -MM $^ > .depend
|
||||
$(CC) $(CFLAGS) -D$(SPAWN) -MM $^ > .depend
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user