mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Check for floorf() and provide simple replacement
This commit is contained in:
parent
0e0d3b563c
commit
96fbdaa81f
5 changed files with 17 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2018-06-11 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/config.h.in
|
||||
* configure
|
||||
* configure.ac
|
||||
* Source/NSBitmapImageRep+JPEG.m
|
||||
Check for floorf() and provide simple replacement.
|
||||
|
||||
2018-06-04 Stjepan Brkić <stjepanbrkicc@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSView.h: Add 'id _coreAnimationData' variable.
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
/* Define to 1 if you have the <flite/flite.h> header file. */
|
||||
#undef HAVE_FLITE_FLITE_H
|
||||
|
||||
/* Define to 1 if you have the `floorf' function. */
|
||||
#undef HAVE_FLOORF
|
||||
|
||||
/* Define to 1 if you have the `getmntent' function. */
|
||||
#undef HAVE_GETMNTENT
|
||||
|
||||
|
|
|
@ -58,6 +58,10 @@ typedef int jpeg_boolean;
|
|||
#include <setjmp.h>
|
||||
|
||||
|
||||
#ifndef HAVE_FLOORF
|
||||
#define floorf(x) floor(x)
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------
|
||||
The following functions are for interacting with the
|
||||
jpeg library
|
||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -3661,7 +3661,7 @@ _ACEOF
|
|||
|
||||
fi
|
||||
|
||||
for ac_func in rint rintf atan2f
|
||||
for ac_func in rint rintf atan2f floorf
|
||||
do :
|
||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||
|
|
|
@ -143,7 +143,7 @@ LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
|
|||
|
||||
|
||||
AC_CHECK_LIB(m, main)
|
||||
AC_CHECK_FUNCS(rint rintf atan2f)
|
||||
AC_CHECK_FUNCS(rint rintf atan2f floorf)
|
||||
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue