mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-31 20:22:57 +03:00
* global.h [_OS_NT]: Include io.h, direct.h and windows.h.
Don't redefine struct timeval.
This commit is contained in:
parent
6a5df4c736
commit
22b2813349
@ -1,5 +1,8 @@
|
|||||||
2002-01-21 Pavel Roskin <proski@gnu.org>
|
2002-01-21 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* global.h [_OS_NT]: Include io.h, direct.h and windows.h.
|
||||||
|
Don't redefine struct timeval.
|
||||||
|
|
||||||
* fs.h [_MSC_VER]: Use dirent provided by glib.
|
* fs.h [_MSC_VER]: Use dirent provided by glib.
|
||||||
|
|
||||||
* global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
|
* global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
|
||||||
|
@ -8,8 +8,10 @@
|
|||||||
|
|
||||||
#include <stdlib.h> /* for free() and other usefull routins */
|
#include <stdlib.h> /* for free() and other usefull routins */
|
||||||
|
|
||||||
#ifdef NEEDS_IO_H
|
#ifdef _OS_NT
|
||||||
|
# include <windows.h>
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
# include <direct.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
@ -31,7 +33,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_SYS_TIME_H
|
#if !defined(HAVE_SYS_TIME_H) && !defined(_OS_NT)
|
||||||
struct timeval {
|
struct timeval {
|
||||||
long int tv_sec; /* seconds */
|
long int tv_sec; /* seconds */
|
||||||
long int tv_usec; /* microseconds */
|
long int tv_usec; /* microseconds */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user