Changeset c7880afaa6f1fefd976d2fe4163fe135fee32135

Show
Ignore:
Timestamp:
22/08/05 20:22:55 (3 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1124734975 +0000
git-parent:

[de1cb2a148c0f46e087573c8a39c18c8823f57d6]

git-author:
Christophe Massiot <massiot@videolan.org> 1124734975 +0000
Message:
  • src/extras/libc.c: Compilation fix for non-Win32 platforms.
Files:

Legend:

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

    rd80b925 rc7880af  
    933933#endif 
    934934 
    935 #if defined(WIN32) || defined(UNDER_CE) 
    936935    VLC_EXPORT( void *, vlc_opendir_wrapper, ( const char * ) ); 
    937936    VLC_EXPORT( struct dirent *, vlc_readdir_wrapper, ( void * ) ); 
    938937    VLC_EXPORT( int, vlc_closedir_wrapper, ( void * ) ); 
    939 #else 
    940 #   define vlc_opendir_wrapper opendir 
    941 #   define vlc_readdir_wrapper readdir 
    942 #   define vlc_closedir_wrapper closedir 
    943 #endif 
    944938 
    945939/* Format type specifiers for 64 bits numbers */ 
  • src/extras/libc.c

    rd80b925 rc7880af  
    423423    return 0; 
    424424} 
     425#else 
     426void *vlc_opendir_wrapper( const char *psz_path ) 
     427{ 
     428    return (void *)opendir( psz_path ); 
     429} 
     430struct dirent *vlc_readdir_wrapper( void *_p_dir ) 
     431{ 
     432    return readdir( (DIR *)_p_dir ); 
     433} 
     434int vlc_closedir_wrapper( void *_p_dir ) 
     435{ 
     436    return closedir( (DIR *)_p_dir ); 
     437} 
    425438#endif 
    426439