Ignore:
Timestamp:
Oct 13, 2004, 4:06:32 AM (21 years ago)
Author:
bird
Message:

Merged in mozilla changes and config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/makedep/include.c

    r164 r168  
    2929
    3030#include "def.h"
     31
     32/* mozilla: */
     33#ifdef _MSC_VER
     34#define S_ISDIR(m) (((m) & _S_IFDIR) == _S_IFDIR)
     35#endif
    3136
    3237extern struct   inclist inclist[ MAXFILES ],
     
    119124                    char **tp = cp;
    120125
    121                     do 
     126                    do
    122127                        *tp++ = *fp; /* move all the pointers down */
    123128                    while (*fp++);
     
    267272                    (type == INCLUDENEXTDOT) ||
    268273                    (*include == '/')) {
    269                         if (stat(include, &st) == 0)
     274                        if (stat(include, &st) == 0 && !S_ISDIR(st.st_mode)) /* mozilla */
    270275                                return newinclude(include, include);
    271276                        if (show_where_not)
     
    289294                        }
    290295                        remove_dotdot(path);
    291                         if (stat(path, &st) == 0)
     296                        if (stat(path, &st) == 0 && !S_ISDIR(st.st_mode)) /* mozilla */
    292297                                return newinclude(path, include);
    293298                        if (show_where_not)
     
    307312                sprintf(path, "%s/%s", *pp, include);
    308313                remove_dotdot(path);
    309                 if (stat(path, &st) == 0) {
     314                if (stat(path, &st) == 0 && !S_ISDIR(st.st_mode)) { /* mozilla */
    310315                        includedirsnext = pp + 1;
    311316                        return newinclude(path, include);
Note: See TracChangeset for help on using the changeset viewer.