From 91db83f0cc7c564ff6c853eeb4e790732dae81cd Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 4 Oct 2005 01:49:02 +0000 Subject: * lcc and q3asm now build with MinGW git-svn-id: svn://svn.icculus.org/quake3/trunk@133 edf5b092-35ff-0310-97b2-ce42778d08ea --- lcc/etc/lcc.c | 9 ++++++++- lcc/makefile | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'lcc') 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 -- cgit v1.2.3