summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-03-21 22:28:25 +0000
committerTim Angus <tim@ngus.net>2006-03-21 22:28:25 +0000
commit64f805804409732a1dade13a37bd1c8fd6083c7d (patch)
tree570bec0ce389d740f5054529ce2dc990cb3212a1 /src
parenta8b2fb46cb60994714f8316776a3d12b178a9274 (diff)
* MinGW fixes merged from ioq3-r652
* Manual updates
Diffstat (limited to 'src')
-rw-r--r--src/tools/lcc/cpp/unix.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/lcc/cpp/unix.c b/src/tools/lcc/cpp/unix.c
index 9d8e5683..b7850df8 100644
--- a/src/tools/lcc/cpp/unix.c
+++ b/src/tools/lcc/cpp/unix.c
@@ -19,6 +19,8 @@ setup(int argc, char **argv)
char *fp, *dp;
Tokenrow tr;
extern void setup_kwtab(void);
+ char *includeDirs[ NINCLUDE ] = { 0 };
+ int numIncludeDirs = 0;
setup_kwtab();
while ((c = getopt(argc, argv, "MNOVv+I:D:U:F:lg")) != -1)
@@ -29,7 +31,7 @@ setup(int argc, char **argv)
includelist[i].deleted = 1;
break;
case 'I':
- appendDirToIncludeList( optarg );
+ includeDirs[ numIncludeDirs++ ] = newstring( (uchar *)optarg, strlen( optarg ), 0 );
break;
case 'D':
case 'U':
@@ -73,6 +75,10 @@ setup(int argc, char **argv)
setobjname(fp);
includelist[NINCLUDE-1].always = 0;
includelist[NINCLUDE-1].file = dp;
+
+ for( i = 0; i < numIncludeDirs; i++ )
+ appendDirToIncludeList( includeDirs[ i ] );
+
setsource(fp, fd, NULL);
}