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 /lib | |
parent | 187869d6b5f7d997adbd3f2b200a4af180798c29 (diff) | |
download | xine-lib-5c6fe26324a0a4a1f95a9edecb151dcd682bad13.tar.gz xine-lib-5c6fe26324a0a4a1f95a9edecb151dcd682bad13.tar.bz2 |
Add configure check and replacement for ffabs()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/os_internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |