Use AddSearchPathFromEnv
git-svn-id: svn://svn.cc65.org/cc65/trunk@2177 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
10243b1bdb
commit
a0d9edf5ba
1 changed files with 5 additions and 12 deletions
|
@ -33,8 +33,6 @@
|
|||
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/* common */
|
||||
#include "searchpath.h"
|
||||
|
||||
|
@ -70,20 +68,15 @@ char* FindInclude (const char* Name, unsigned Where)
|
|||
void InitIncludePaths (void)
|
||||
/* Initialize the include path search list */
|
||||
{
|
||||
const char* Path;
|
||||
|
||||
/* Add some standard paths to the include search path */
|
||||
AddIncludePath ("", INC_USER); /* Current directory */
|
||||
AddIncludePath ("include", INC_SYS);
|
||||
AddSearchPath ("", INC_USER); /* Current directory */
|
||||
AddSearchPath ("include", INC_SYS);
|
||||
#ifdef CC65_INC
|
||||
AddIncludePath (CC65_INC, INC_SYS);
|
||||
AddSearchPath (CC65_INC, INC_SYS);
|
||||
#else
|
||||
AddIncludePath ("/usr/lib/cc65/include", INC_SYS);
|
||||
AddSearchPath ("/usr/lib/cc65/include", INC_SYS);
|
||||
#endif
|
||||
Path = getenv ("CC65_INC");
|
||||
if (Path) {
|
||||
AddIncludePath (Path, INC_SYS | INC_USER);
|
||||
}
|
||||
AddSearchPathFromEnv ("CC65_INC", INC_SYS | INC_USER);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue