Changeset 917 for trunk/src/gmakenew/read.c
- Timestamp:
- May 25, 2007, 12:39:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmakenew/read.c
r910 r917 31 31 #include "debug.h" 32 32 #include "hash.h" 33 #ifdef KMK 34 # include "kbuild.h" 35 #endif 33 36 34 37 … … 91 94 static const char *default_include_directories[] = 92 95 { 96 #ifndef KMK 93 97 #if defined(WINDOWS32) && !defined(INCLUDEDIR) 94 98 /* This completely up to the user when they install MSVC or other packages. … … 102 106 "/usr/include", 103 107 #endif 108 #endif /* !KMK */ 104 109 0 105 110 }; … … 3006 3011 ++idx; 3007 3012 #endif 3013 #ifdef KMK 3014 /* Add one for the kBuild directory. */ 3015 ++idx; 3016 #endif 3008 3017 3009 3018 dirs = xmalloc (idx * sizeof (const char *)); … … 3064 3073 max_incl_len = len; 3065 3074 } 3075 } 3076 #endif 3077 #ifdef KMK 3078 /* Add $(PATH_KBUILD). */ 3079 { 3080 size_t len = strlen (get_path_kbuild ()); 3081 dirs[idx++] = strcache_add_len (get_path_kbuild (), len); 3082 if (len > max_incl_len) 3083 max_incl_len = len; 3066 3084 } 3067 3085 #endif … … 3226 3244 { 3227 3245 gl.gl_pathc = 1; 3228 gl.gl_pathv = (char * )&gname;3246 gl.gl_pathv = (char **)&gname; 3229 3247 rc = 0; 3230 3248 }
Note:
See TracChangeset
for help on using the changeset viewer.