Changeset beee3221da8d2f81ff6142269d875ea59e6fd5f3

Show
Ignore:
Timestamp:
05/01/08 22:11:42 (3 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1209672702 +0300
git-parent:

[4b8ce41a01d64ef213fde735fc73e6323aa0cdee]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1209672702 +0300
Message:

Move dirent stuff to fixups.h, where it belongs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    r4b8ce41 rbeee322  
    774774VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) ); 
    775775 
    776 #ifndef HAVE_DIRENT_H 
    777     typedef void DIR; 
    778 #   ifndef FILENAME_MAX 
    779 #       define FILENAME_MAX (260) 
    780 #   endif 
    781     struct dirent 
    782     { 
    783         long            d_ino;          /* Always zero. */ 
    784         unsigned short  d_reclen;       /* Always zero. */ 
    785         unsigned short  d_namlen;       /* Length of name in d_name. */ 
    786         char            d_name[FILENAME_MAX]; /* File name. */ 
    787     }; 
    788 #   define opendir vlc_opendir 
    789 #   define readdir vlc_readdir 
    790 #   define closedir vlc_closedir 
    791 #   define rewinddir vlc_rewindir 
    792 #   define seekdir vlc_seekdir 
    793 #   define telldir vlc_telldir 
    794     VLC_EXPORT( void *, vlc_opendir, ( const char * ) ); 
    795     VLC_EXPORT( void *, vlc_readdir, ( void * ) ); 
    796     VLC_EXPORT( int, vlc_closedir, ( void * ) ); 
    797     VLC_INTERNAL( void, vlc_rewinddir, ( void * ) ); 
    798     VLC_INTERNAL( void, vlc_seekdir, ( void *, long ) ); 
    799     VLC_INTERNAL( long, vlc_telldir, ( void * ) ); 
    800 #endif 
    801  
    802776#if defined (WIN32) 
    803777#   include <dirent.h> 
  • include/vlc_fixups.h

    r1816e3e rbeee322  
    122122#endif 
    123123 
     124#ifndef HAVE_DIRENT_H 
     125typedef void DIR; 
     126#   ifndef FILENAME_MAX 
     127#       define FILENAME_MAX (260) 
     128#   endif 
     129struct dirent 
     130{ 
     131    long            d_ino;          /* Always zero. */ 
     132    unsigned short  d_reclen;       /* Always zero. */ 
     133    unsigned short  d_namlen;       /* Length of name in d_name. */ 
     134    char            d_name[FILENAME_MAX]; /* File name. */ 
     135}; 
     136#   define opendir vlc_opendir 
     137#   define readdir vlc_readdir 
     138#   define closedir vlc_closedir 
     139#   define rewinddir vlc_rewindir 
     140#   define seekdir vlc_seekdir 
     141#   define telldir vlc_telldir 
     142VLC_EXPORT( void *, vlc_opendir, ( const char * ) ); 
     143VLC_EXPORT( void *, vlc_readdir, ( void * ) ); 
     144VLC_EXPORT( int, vlc_closedir, ( void * ) ); 
     145VLC_INTERNAL( void, vlc_rewinddir, ( void * ) ); 
     146VLC_INTERNAL( void, vlc_seekdir, ( void *, long ) ); 
     147VLC_INTERNAL( long, vlc_telldir, ( void * ) ); 
     148#endif 
     149 
    124150#endif /* !LIBVLC_FIXUPS_H */