Changeset 168 for trunk/src/makedep/include.c
- Timestamp:
- Oct 13, 2004, 4:06:32 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/makedep/include.c
r164 r168 29 29 30 30 #include "def.h" 31 32 /* mozilla: */ 33 #ifdef _MSC_VER 34 #define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR) 35 #endif 31 36 32 37 extern struct inclist inclist[ MAXFILES ], … … 119 124 char **tp = cp; 120 125 121 do 126 do 122 127 *tp++ = *fp; /* move all the pointers down */ 123 128 while (*fp++); … … 267 272 (type == INCLUDENEXTDOT) || 268 273 (*include == '/')) { 269 if (stat(include, &st) == 0 )274 if (stat(include, &st) == 0 && !S_ISDIR(st.st_mode)) /* mozilla */ 270 275 return newinclude(include, include); 271 276 if (show_where_not) … … 289 294 } 290 295 remove_dotdot(path); 291 if (stat(path, &st) == 0 )296 if (stat(path, &st) == 0 && !S_ISDIR(st.st_mode)) /* mozilla */ 292 297 return newinclude(path, include); 293 298 if (show_where_not) … … 307 312 sprintf(path, "%s/%s", *pp, include); 308 313 remove_dotdot(path); 309 if (stat(path, &st) == 0 ) {314 if (stat(path, &st) == 0 && !S_ISDIR(st.st_mode)) { /* mozilla */ 310 315 includedirsnext = pp + 1; 311 316 return newinclude(path, include);
Note:
See TracChangeset
for help on using the changeset viewer.