]> git.sur5r.net Git - cc65/commitdiff
Don't add the current directory to the list of search paths. If the main file
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 1 Aug 2012 21:44:36 +0000 (21:44 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 1 Aug 2012 21:44:36 +0000 (21:44 +0000)
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

src/cc65/incpath.c

index fdbca2a078e4b768334bca85e16d998a9f99aea0..8b3596fdd4b94eac555a33e57e9bf63d59647ab0 100644 (file)
@@ -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);