mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Minor fixes in dirent.c and dirent.h for Windows NT
This commit is contained in:
parent
b4dadfbecd
commit
618d865e21
@ -5,11 +5,6 @@
|
|||||||
#ifndef _DIRENT_H_incl
|
#ifndef _DIRENT_H_incl
|
||||||
#define _DIRENT_H_incl
|
#define _DIRENT_H_incl
|
||||||
|
|
||||||
#ifdef __WATCOMC__
|
|
||||||
#include <direct.h>
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#ifdef __cplupplus
|
#ifdef __cplupplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -65,6 +60,4 @@ extern int rmdir( const char *__path );
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __WATCOMC__ */
|
|
||||||
|
|
||||||
#endif /* _DIRENT_H_incl */
|
#endif /* _DIRENT_H_incl */
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <dirent.h>
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include "dirent.h"
|
||||||
|
|
||||||
DIR *opendir (const char * a_dir)
|
DIR *opendir (const char * a_dir)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user