diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-19 18:53:31 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-20 02:54:04 +0000 |
commit | b73689649059060c5876a8ae281a2ded58a1b8fc (patch) | |
tree | a2b18d7154626619a3e597fd211c4e631c3414a2 /ui/time_shift.c | |
parent | 201a7e7d689bef213a0d303601c6ac41d02a21be (diff) |
Handle floorl() the same way we handle other not-on-all-platforms functions.
Use AC_CHECK_FUNC() for it, define FLOORL_LO to floorl.lo if we *don't*
have it, add FLOORL_LO to the list of items conditionally built in
libwsutil, and include "wsutil/floor.h" only if HAVE_FLOORL is *not*
defined, as that means it's *not* supplied by the platform and thus
*not* declared in <math.h>.
Also, use the standard export stuff in wsutil/floor.h.
Change-Id: Ic24aa69f65f2d15450d8b84b0c2b0c58f38edebe
Reviewed-on: https://code.wireshark.org/review/5901
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/time_shift.c')
-rw-r--r-- | ui/time_shift.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/time_shift.c b/ui/time_shift.c index d9275526ec..0f7af738bc 100644 --- a/ui/time_shift.c +++ b/ui/time_shift.c @@ -33,7 +33,9 @@ #include "ui/ui_util.h" -#include "wsutil/floor.h" +#ifndef HAVE_FLOORL +# include "wsutil/floor.h" +#endif #define SHIFT_POS 0 #define SHIFT_NEG 1 |