Changeset c7880afaa6f1fefd976d2fe4163fe135fee32135
- 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
| rd80b925 |
rc7880af |
|
| 933 | 933 | #endif |
|---|
| 934 | 934 | |
|---|
| 935 | | #if defined(WIN32) || defined(UNDER_CE) |
|---|
| 936 | 935 | VLC_EXPORT( void *, vlc_opendir_wrapper, ( const char * ) ); |
|---|
| 937 | 936 | VLC_EXPORT( struct dirent *, vlc_readdir_wrapper, ( void * ) ); |
|---|
| 938 | 937 | 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 |
|---|
| 944 | 938 | |
|---|
| 945 | 939 | /* Format type specifiers for 64 bits numbers */ |
|---|
| rd80b925 |
rc7880af |
|
| 423 | 423 | return 0; |
|---|
| 424 | 424 | } |
|---|
| | 425 | #else |
|---|
| | 426 | void *vlc_opendir_wrapper( const char *psz_path ) |
|---|
| | 427 | { |
|---|
| | 428 | return (void *)opendir( psz_path ); |
|---|
| | 429 | } |
|---|
| | 430 | struct dirent *vlc_readdir_wrapper( void *_p_dir ) |
|---|
| | 431 | { |
|---|
| | 432 | return readdir( (DIR *)_p_dir ); |
|---|
| | 433 | } |
|---|
| | 434 | int vlc_closedir_wrapper( void *_p_dir ) |
|---|
| | 435 | { |
|---|
| | 436 | return closedir( (DIR *)_p_dir ); |
|---|
| | 437 | } |
|---|
| 425 | 438 | #endif |
|---|
| 426 | 439 | |
|---|