diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-12-08 11:27:50 +0200 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-12-08 11:27:50 +0200 |
commit | 5c6fe26324a0a4a1f95a9edecb151dcd682bad13 (patch) | |
tree | 1dde4dcf2192398a9688195a81a0e4f7dc77be78 | |
parent | 187869d6b5f7d997adbd3f2b200a4af180798c29 (diff) | |
download | xine-lib-5c6fe26324a0a4a1f95a9edecb151dcd682bad13.tar.gz xine-lib-5c6fe26324a0a4a1f95a9edecb151dcd682bad13.tar.bz2 |
Add configure check and replacement for ffabs()
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | lib/os_internal.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a74681f00..067bae719 100644 --- a/configure.ac +++ b/configure.ac @@ -908,6 +908,7 @@ if test x"$enable_mmap" = x"yes"; then fi AC_CHECK_FUNCS([vsscanf sigaction sigset getpwuid_r nanosleep lstat memset readlink strchr va_copy]) +AC_CHECK_FUNCS([llabs]) AC_CHECK_FUNCS([snprintf _snprintf], [have_required_function="yes"]) test x"$have_required_function" != x"yes" && AC_MSG_ERROR([required function not found]) diff --git a/lib/os_internal.h b/lib/os_internal.h index b06b51112..157b03923 100644 --- a/lib/os_internal.h +++ b/lib/os_internal.h @@ -339,6 +339,11 @@ int xine_private_pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct ti # define lstat(FILENAME, BUF) stat((FILENAME), (BUF)) #endif +/* replace llabs */ +#ifndef HAVE_LLABS +# define llabs(a) (((a) < 0) ? (-a) : (a)) +#endif + /* replacements of dirent for MSVC platform */ #ifndef HAVE_OPENDIR #define HAVE_OPENDIR |