summaryrefslogtreecommitdiff
path: root/lib/os_internal.h
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2006-10-02 15:56:03 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2006-10-02 15:56:03 +0000
commite1f238b9b1cccad4627be4716320e767b621289d (patch)
tree7aaa4538c811dce87fcc4908dc5fef268fa207e9 /lib/os_internal.h
parent6822d8e82afac62170ddb7e88f4fb26c2adbb3a6 (diff)
downloadxine-lib-e1f238b9b1cccad4627be4716320e767b621289d.tar.gz
xine-lib-e1f238b9b1cccad4627be4716320e767b621289d.tar.bz2
build cdio for builddir != .
update for attic platforms (mainly older MinGW) unsupported attributes not used (fixes warnings) added check for sentinel attribute enabled TrueSpeech codec CVS patchset: 8327 CVS date: 2006/10/02 15:56:03
Diffstat (limited to 'lib/os_internal.h')
-rw-r--r--lib/os_internal.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/os_internal.h b/lib/os_internal.h
index 9ce57598f..8ecfbaeab 100644
--- a/lib/os_internal.h
+++ b/lib/os_internal.h
@@ -153,16 +153,13 @@ char *xine_private_strndup(const char *s, size_t n);
#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif
-#ifndef HAVE_LRINTF
-#define HAVE_LRINTF
-#define lrint(X) (long)((X) + ((X) >= 0 ? 0.5 : -0.5))
-#endif
-#ifndef HAVE_RINTF
-#define HAVE_RINTF
-#define rint(X) (int)((X) + ((X) >= 0 ? 0.5 : -0.5))
-#endif
#ifdef WIN32
+/* this hack applied only on attic version of MinGW platform */
+# if !defined(va_copy) && !defined(HAVE_VA_COPY)
+# define va_copy(DEST, SRC) ((DEST) = (SRC))
+# endif
+
# include <io.h>
# ifdef _MSC_VER
# include <direct.h>