1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[time.h] time.h can be included unconditionally

This commit is contained in:
Witold Filipczyk 2021-03-19 14:22:04 +01:00
parent b6cf921bd3
commit 36aa04ed12
12 changed files with 0 additions and 41 deletions

View File

@ -761,9 +761,6 @@
/* Define to 1 if you have the `timegm' function. */
#mesondefine HAVE_TIMEGM
/* Define to 1 if you have the <time.h> header file. */
#mesondefine HAVE_TIME_H
/* Define to 1 if you have the `tsearch' function. */
#mesondefine HAVE_TSEARCH

View File

@ -152,7 +152,6 @@ conf_data.set10('HAVE_DIRENT_H', 1)
# AC_HEADER_SYS_WAIT
conf_data.set10('HAVE_SYS_WAIT_H', 1)
# AC_HEADER_TIME
conf_data.set10('TIME_WITH_SYS_TIME', 1)
conf_data.set10('HAVE_SYS_TIME_H', 1)
compiler = meson.get_compiler('c')
@ -167,7 +166,6 @@ conf_data.set10('HAVE_WCHAR_H', compiler.has_header('wchar.h'))
conf_data.set10('HAVE_WCTYPE_H', compiler.has_header('wctype.h'))
conf_data.set10('HAVE_FCNTL_H', compiler.has_header('fcntl.h'))
conf_data.set10('HAVE_LIMITS_H', compiler.has_header('limits.h'))
conf_data.set10('HAVE_TIME_H', compiler.has_header('time.h'))
conf_data.set10('HAVE_UNISTD_H', compiler.has_header('unistd.h'))
conf_data.set10('HAVE_SIGACTION_H', compiler.has_header('sigaction.h'))
conf_data.set10('HAVE_ARPA_INET_H', compiler.has_header('arpa/inet.h'))

View File

@ -10,9 +10,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "elinks.h"

View File

@ -9,9 +9,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h> /* OS/2 needs this after sys/types.h */
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "elinks.h"

View File

@ -7,9 +7,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "elinks.h"

View File

@ -13,9 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "bfu/dialog.h"
#include "config/home.h"

View File

@ -16,9 +16,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
/* Blame BSD for position of this includes. */
#ifdef HAVE_NETINET_IN_H

View File

@ -7,20 +7,10 @@
#include <stdlib.h>
#include <string.h>
#ifdef TIME_WITH_SYS_TIME
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#else
#if defined(TM_IN_SYS_TIME) && defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#elif defined(HAVE_TIME_H)
#include <time.h>
#endif
#endif
#include "elinks.h"

View File

@ -21,9 +21,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "elinks.h"

View File

@ -25,20 +25,10 @@
#include <unistd.h>
#endif
#ifdef TIME_WITH_SYS_TIME
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#else
#if defined(TM_IN_SYS_TIME) && defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#elif defined(HAVE_TIME_H)
#include <time.h>
#endif
#endif
#include "elinks.h"

View File

@ -8,9 +8,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#include "elinks.h"

View File

@ -7,9 +7,7 @@
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#ifdef __cplusplus
extern "C" {