From b73689649059060c5876a8ae281a2ded58a1b8fc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 Dec 2014 18:53:31 -0800 Subject: 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 . 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 --- ui/time_shift.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/time_shift.c') 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 -- cgit v1.2.3