/rusxmms/librcc

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/librcc

« back to all changes in this revision

Viewing changes to src/fs.c

  • Committer: Suren A. Chilingaryan
  • Date: 2010-07-16 07:58:26 UTC
  • Revision ID: csa@dside.dyndns.org-20100716075826-4rvnh4iccqrqsdfj
Windows fixes and CMake scripts to build under Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
static int rccIsFile(const char *filename) {
84
84
    struct stat st;
85
85
 
 
86
#ifdef HAVE_SYS_STAT_H
 
87
# ifdef S_ISREG
86
88
    if ((!stat(filename,&st))&&(S_ISREG(st.st_mode))) return 1;
 
89
# else /* S_ISREG */
 
90
    if (!stat(filename,&st)) return 1;
 
91
# endif /* S_ISREG */
 
92
#endif /* HAVE_SYS_STAT_H */
87
93
    return 0;
88
94
}
89
95