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:
cuz
2005-12-11 12:40:51 +00:00
parent 2d66b55b9d
commit 84706bd2d5
20 changed files with 87 additions and 58 deletions

View File

@@ -6,7 +6,7 @@
COMMON = ../../common
SIM65 = ..
CFLAGS = -g -O2 -Wall -W -I$(COMMON) -I$(SIM65) -fpic
CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON) -I$(SIM65) -fpic
CC = gcc
EBIND = emxbind
LDFLAGS =
@@ -56,6 +56,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(CHIPS:.so=.c)
@echo "Creating dependency information"
$(CC) -I$(COMMON) -I$(SIM65) -MM $^ > .depend
$(CC) $(CFLAGS) -MM $^ > .depend

View File

@@ -5,7 +5,7 @@
# Library dir
COMMON = ../common
CFLAGS = -g -O2 -Wall -W -I$(COMMON)
CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
CC = gcc
EBIND = emxbind
LDFLAGS =
@@ -63,6 +63,6 @@ zap: clean
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
$(CC) -I$(COMMON) -MM $^ > .depend
$(CC) $(CFLAGS) -MM $^ > .depend