[pulseaudio-commits] r1851 - in /branches/lennart: configure.ac src/pulsecore/ffmpeg/resample2.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Tue Sep 18 03:38:08 PDT 2007
Author: ossman
Date: Tue Sep 18 12:38:07 2007
New Revision: 1851
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1851&root=pulseaudio&view=rev
Log:
Emulate lrintf with simple truncation if it isn't available.
Modified:
branches/lennart/configure.ac
branches/lennart/src/pulsecore/ffmpeg/resample2.c
Modified: branches/lennart/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/configure.ac?rev=1851&root=pulseaudio&r1=1850&r2=1851&view=diff
==============================================================================
--- branches/lennart/configure.ac (original)
+++ branches/lennart/configure.ac Tue Sep 18 12:38:07 2007
@@ -265,6 +265,9 @@
AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
#### Check for functions ####
+
+# ISO
+AC_CHECK_FUNCS([lrintf])
# POSIX
AC_FUNC_FORK
Modified: branches/lennart/src/pulsecore/ffmpeg/resample2.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/ffmpeg/resample2.c?rev=1851&root=pulseaudio&r1=1850&r2=1851&view=diff
==============================================================================
--- branches/lennart/src/pulsecore/ffmpeg/resample2.c (original)
+++ branches/lennart/src/pulsecore/ffmpeg/resample2.c Tue Sep 18 12:38:07 2007
@@ -85,6 +85,13 @@
}
return v;
}
+
+/*
+ * crude lrintf for non-C99 systems.
+ */
+#ifndef HAVE_LFRINTF
+#define lrintf(x) ((long int)(x))
+#endif
/**
* builds a polyphase filterbank.
More information about the pulseaudio-commits
mailing list