aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_mono_clock.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 15:20:27 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 15:21:20 +0300
commit8c87442ffc677fd41c31c9a3fde0d685ef5ae65d (patch)
tree3fa1847caf93efc48033d4e81d27c2c2278dea79 /src/microhttpd/mhd_mono_clock.c
parent6f4d2a44169eb4197febcf754cc5e6ae4a10a6b7 (diff)
downloadlibmicrohttpd-8c87442ffc677fd41c31c9a3fde0d685ef5ae65d.tar.gz
libmicrohttpd-8c87442ffc677fd41c31c9a3fde0d685ef5ae65d.zip
Fixed many macros
'defined()' should be used without space before bracket
Diffstat (limited to 'src/microhttpd/mhd_mono_clock.c')
-rw-r--r--src/microhttpd/mhd_mono_clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_mono_clock.c b/src/microhttpd/mhd_mono_clock.c
index b04153f8..4efddd1b 100644
--- a/src/microhttpd/mhd_mono_clock.c
+++ b/src/microhttpd/mhd_mono_clock.c
@@ -345,7 +345,7 @@ MHD_monotonic_sec_counter_init (void)
345 else 345 else
346 gettime_start = 0; 346 gettime_start = 0;
347 } 347 }
348#elif defined (HAVE_GETTIMEOFDAY) 348#elif defined(HAVE_GETTIMEOFDAY)
349 if (1) 349 if (1)
350 { 350 {
351 struct timeval tv; 351 struct timeval tv;
@@ -488,7 +488,7 @@ MHD_monotonic_msec_counter (void)
488 if (TIME_UTC == timespec_get (&ts, TIME_UTC)) 488 if (TIME_UTC == timespec_get (&ts, TIME_UTC))
489 return (uint64_t) (((uint64_t) (ts.tv_sec - gettime_start)) * 1000 489 return (uint64_t) (((uint64_t) (ts.tv_sec - gettime_start)) * 1000
490 + (ts.tv_nsec / 1000000)); 490 + (ts.tv_nsec / 1000000));
491#elif defined (HAVE_GETTIMEOFDAY) 491#elif defined(HAVE_GETTIMEOFDAY)
492 if (1) 492 if (1)
493 { 493 {
494 struct timeval tv; 494 struct timeval tv;