diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 01:49:02 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 01:49:02 +0000 |
commit | 91db83f0cc7c564ff6c853eeb4e790732dae81cd (patch) | |
tree | a7cc534b6649599c0422f52dbe3f648f9f560697 /lcc | |
parent | 45d6a88841f0db650d615522b1f6594ea72ceb7e (diff) | |
download | ioquake3-aero-91db83f0cc7c564ff6c853eeb4e790732dae81cd.tar.gz ioquake3-aero-91db83f0cc7c564ff6c853eeb4e790732dae81cd.zip |
* lcc and q3asm now build with MinGW
git-svn-id: svn://svn.icculus.org/quake3/trunk@133 edf5b092-35ff-0310-97b2-ce42778d08ea
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 |