aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-15 21:17:03 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-01-15 21:17:03 +0000
commit4a37d07f68543c8a4b19feafeedf78a93b16630e (patch)
tree574a5156fe6914f8fb357b5d8ad046756105423c /code/tools
parent658430ae6ce481020a841ca2aeabd61010d9bdc0 (diff)
downloadioquake3-aero-4a37d07f68543c8a4b19feafeedf78a93b16630e.tar.gz
ioquake3-aero-4a37d07f68543c8a4b19feafeedf78a93b16630e.zip
* Fix a bug where q3cpp's include paths were not set correctly
git-svn-id: svn://svn.icculus.org/quake3/trunk@488 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/tools')
-rw-r--r--code/tools/lcc/cpp/include.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/code/tools/lcc/cpp/include.c b/code/tools/lcc/cpp/include.c
index 71bd90c..1bb8847 100644
--- a/code/tools/lcc/cpp/include.c
+++ b/code/tools/lcc/cpp/include.c
@@ -10,11 +10,16 @@ extern char *objname;
void appendDirToIncludeList( char *dir )
{
int i;
+ char *fqdir;
+
+ fqdir = (char *)newstring( (uchar *)includelist[NINCLUDE-1].file, 256, 0 );
+ strcat( fqdir, "/" );
+ strcat( fqdir, dir );
//avoid adding it more than once
for (i=NINCLUDE-2; i>=0; i--) {
if (includelist[i].file &&
- !strcmp (includelist[i].file, dir)) {
+ !strcmp (includelist[i].file, fqdir)) {
return;
}
}
@@ -22,7 +27,7 @@ void appendDirToIncludeList( char *dir )
for (i=NINCLUDE-2; i>=0; i--) {
if (includelist[i].file==NULL) {
includelist[i].always = 1;
- includelist[i].file = dir;
+ includelist[i].file = fqdir;
break;
}
}