mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
improve brackets in fallback timeval macros
This commit is contained in:
parent
4745fcf1c7
commit
c82049eb84
@ -31,7 +31,7 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifndef timerclear
|
||||
#define timerclear(a) (a)->tv_sec = (a)->tv_usec = 0
|
||||
#define timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0)
|
||||
#endif
|
||||
|
||||
#ifndef timerisset
|
||||
@ -64,8 +64,8 @@
|
||||
|
||||
#ifndef timercmp
|
||||
#define timercmp(a, aa, cmp) \
|
||||
((a)->tv_sec cmp (aa)->tv_sec || \
|
||||
(a)->tv_sec == (aa)->tv_sec && (a)->tv_usec cmp (aa)->tv_usec)
|
||||
(((a)->tv_sec cmp (aa)->tv_sec) || \
|
||||
((a)->tv_sec == (aa)->tv_sec && (a)->tv_usec cmp (aa)->tv_usec))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user