diff options
Diffstat (limited to 'lcc')
-rw-r--r-- | lcc/etc/lcc.c | 9 | ||||
-rw-r--r-- | lcc/makefile | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lcc/etc/lcc.c b/lcc/etc/lcc.c index 3b8e6e2..89706df 100644 --- a/lcc/etc/lcc.c +++ b/lcc/etc/lcc.c @@ -280,7 +280,11 @@ static int callsys(char **av) { fprintf(stderr, "\n"); } if (verbose < 2) +#ifndef WIN32 status = _spawnvp(_P_WAIT, argv[0], argv); +#else + status = _spawnvp(_P_WAIT, argv[0], (const char* const*)argv); +#endif if (status == -1) { fprintf(stderr, "%s: ", progname); perror(argv[0]); @@ -521,6 +525,9 @@ static void help(void) { static void initinputs(void) { char *s = getenv("LCCINPUTS"); List b; +#ifdef WIN32 + List list; +#endif if (s == 0 || (s = inputs)[0] == 0) s = "."; @@ -538,7 +545,7 @@ static void initinputs(void) { } while (b != lccinputs); } #ifdef WIN32 - if (list = b = path2list(getenv("include"))) + if ((list = b = path2list(getenv("include")))) do { b = b->link; ilist = append(stringf("-I\"%s\"", b->str), ilist); diff --git a/lcc/makefile b/lcc/makefile index c496406..26efed4 100644 --- a/lcc/makefile +++ b/lcc/makefile @@ -4,10 +4,10 @@ TEMPDIR=/tmp A=.a O=.o E= -CC=cc +CC=gcc CFLAGS=-O2 -Wall -fno-strict-aliasing LDFLAGS= -LD=cc +LD=gcc AR=ar ruv RANLIB=ranlib DIFF=diff |