Provide a floorl() function (which is currently only able to call GCC's
authorStephen Fisher <sfisher@sdf.org>
Fri, 19 Dec 2014 22:54:04 +0000 (15:54 -0700)
committerStephen Fisher <sfisher@sdf.org>
Fri, 19 Dec 2014 22:56:18 +0000 (22:56 +0000)
__builtin_floorl() function) for systems which don't provide one.

Change-Id: Ie0140ff195f0eae525c7bd70c7c3e23039fde569
Reviewed-on: https://code.wireshark.org/review/5889
Reviewed-by: Stephen Fisher <sfisher@sdf.org>
configure.ac
ui/time_shift.c
wsutil/Makefile.common

index 42c01ec7b3771cd457af3570a593f5f06e1de0f5..73572c524bc1aa414137e9a518b4009213ae95a2 100644 (file)
@@ -2736,6 +2736,7 @@ AC_SUBST(STRPTIME_LO)
 AC_CHECK_FUNCS(getprotobynumber gethostbyname2)
 AC_CHECK_FUNCS(issetugid)
 AC_CHECK_FUNCS(mmap mprotect sysconf)
+AC_CHECK_FUNCS(floorl)
 
 dnl blank for now, but will be used in future
 AC_SUBST(wireshark_SUBDIRS)
index 3363c50f40d82262f6bf0fa28a3fcf53a8a46905..d9275526ec643cc7328c2301856c0af7cf8ae286 100644 (file)
@@ -33,6 +33,8 @@
 
 #include "ui/ui_util.h"
 
+#include "wsutil/floor.h"
+
 #define SHIFT_POS               0
 #define SHIFT_NEG               1
 #define SHIFT_SETTOZERO         1
index f59f4c2af2857ecbf255867301e1d96dd280215e..d09c7d9f115602c73be53f99bdc236bbff475ee5 100644 (file)
@@ -51,6 +51,7 @@ LIBWSUTIL_SRC =       \
        des.c           \
        eax.c           \
        filesystem.c    \
+       floor.c         \
        g711.c          \
        glib_version_info.c \
        md4.c           \
@@ -103,6 +104,7 @@ libwsutil_nonrepl_INCLUDES = \
        des.h           \
        eax.h           \
        filesystem.h    \
+       floor.h         \
        g711.h          \
        glib_version_info.h \
        md4.h           \