* global.h [_OS_NT]: Include io.h, direct.h and windows.h.
Don't redefine struct timeval.
Этот коммит содержится в:
родитель
6a5df4c736
Коммит
22b2813349
@ -1,5 +1,8 @@
|
||||
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.
|
||||
|
||||
* global.h [!HAVE_SYS_TIME_H]: Provide a replacement for struct
|
||||
|
@ -8,8 +8,10 @@
|
||||
|
||||
#include <stdlib.h> /* for free() and other usefull routins */
|
||||
|
||||
#ifdef NEEDS_IO_H
|
||||
#ifdef _OS_NT
|
||||
# include <windows.h>
|
||||
# include <io.h>
|
||||
# include <direct.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_PARAM_H
|
||||
@ -31,7 +33,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SYS_TIME_H
|
||||
#if !defined(HAVE_SYS_TIME_H) && !defined(_OS_NT)
|
||||
struct timeval {
|
||||
long int tv_sec; /* seconds */
|
||||
long int tv_usec; /* microseconds */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user