summaryrefslogtreecommitdiff
path: root/utils/utils.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-19 09:16:09 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-19 09:16:09 +0100
commit836ea5679e5a817e0c6a2654d5a29a053a602593 (patch)
tree8f35232bb9379238b651a8672af964039f057b06 /utils/utils.h
parent46e1061ef3b156016c689698d35bbbbbebf17471 (diff)
downloadnetsurf-836ea5679e5a817e0c6a2654d5a29a053a602593.tar.gz
netsurf-836ea5679e5a817e0c6a2654d5a29a053a602593.tar.bz2
move sys/time.h support functionality out of generic header
The utils header is a large collection of functionality for several system headers and API. This splits out the ones from sys/time.h into a separate header reducing the need for many unconnected source files to include the system header unecessarily.
Diffstat (limited to 'utils/utils.h')
-rw-r--r--utils/utils.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/utils/utils.h b/utils/utils.h
index 4b5360c5c..39a7254b0 100644
--- a/utils/utils.h
+++ b/utils/utils.h
@@ -31,7 +31,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/time.h>
#include <regex.h>
#include <assert.h>
#include <stdarg.h>
@@ -119,32 +118,6 @@ struct dirent;
#define SLEN(x) (sizeof((x)) - 1)
-#ifndef timeradd
-#define timeradd(a, aa, result) \
- do { \
- (result)->tv_sec = (a)->tv_sec + (aa)->tv_sec; \
- (result)->tv_usec = (a)->tv_usec + (aa)->tv_usec; \
- if ((result)->tv_usec >= 1000000) { \
- ++(result)->tv_sec; \
- (result)->tv_usec -= 1000000; \
- } \
- } while (0)
-#endif
-
-#ifndef timersub
-#define timersub(a, aa, result) \
- do { \
- (result)->tv_sec = (a)->tv_sec - (aa)->tv_sec; \
- (result)->tv_usec = (a)->tv_usec - (aa)->tv_usec; \
- if ((result)->tv_usec < 0) { \
- --(result)->tv_sec; \
- (result)->tv_usec += 1000000; \
- } \
- } while (0)
-#endif
-
-
-
/**
* Replace consecutive whitespace with a single space.
*