From: uz Date: Wed, 1 Aug 2012 21:44:36 +0000 (+0000) Subject: Don't add the current directory to the list of search paths. If the main file X-Git-Tag: V2.14~269 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fe9e2c3b3bca260e05064cc6bc4628b58aacd01;p=cc65 Don't add the current directory to the list of search paths. If the main file is located there, it is added anyway. If the main file is located elsewhere, we don't want to search in the current directory. git-svn-id: svn://svn.cc65.org/cc65/trunk@5803 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/incpath.c b/src/cc65/incpath.c index fdbca2a07..8b3596fdd 100644 --- a/src/cc65/incpath.c +++ b/src/cc65/incpath.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2010, Ullrich von Bassewitz */ +/* (C) 2000-2012, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -71,9 +71,6 @@ void InitIncludePaths (void) SysIncSearchPath = NewSearchPath (); UsrIncSearchPath = NewSearchPath (); - /* Add the current path to the user search path list */ - AddSearchPath (UsrIncSearchPath, ""); - /* Add some compiled in search paths if defined at compile time */ #ifdef CC65_INC AddSearchPath (SysIncSearchPath, CC65_INC);