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:
@@ -28,7 +28,6 @@
|
||||
#include "grc.h"
|
||||
|
||||
/* common stuff */
|
||||
//#include "cmdline.h"
|
||||
#include "fname.h"
|
||||
#include "abend.h"
|
||||
#include "chartype.h"
|
||||
@@ -261,7 +260,6 @@ int a;
|
||||
}
|
||||
}
|
||||
|
||||
//char *bintos(unsigned char a, char *out) {
|
||||
char *bintos(unsigned char a, char out[7]) {
|
||||
int i=0;
|
||||
for (;i<8;i++) {
|
||||
|
||||
@@ -66,7 +66,7 @@ const unsigned char icon1[] = {
|
||||
128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1,
|
||||
128, 0, 1, 128, 0, 1, 128, 0, 1, 128, 0, 1, 255, 255, 255 };
|
||||
|
||||
char *ProgName; // for AbEnd, later remove and use common/cmdline.h
|
||||
char *ProgName; /* for AbEnd, later remove and use common/cmdline.h */
|
||||
|
||||
char *outputCName=NULL, *outputSName=NULL, *outputVName=NULL;
|
||||
FILE *outputCFile, *outputSFile, *outputVFile;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
COMMON = ../common
|
||||
|
||||
CFLAGS = -g -O2 -Wall -W -I$(COMMON)
|
||||
CFLAGS = -g -O2 -Wall -W -std=c89 -I$(COMMON)
|
||||
CC = gcc
|
||||
LDFLAGS =
|
||||
EBIND = emxbind
|
||||
@@ -42,6 +42,6 @@ zap: clean
|
||||
.PHONY: depend dep
|
||||
depend dep: $(OBJS:.o=.c)
|
||||
@echo "Creating dependency information"
|
||||
$(CC) -I$(COMMON) -MM $^ > .depend
|
||||
$(CC) $(CFLAGS) -MM $^ > .depend
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user