From 8dc253dad613fa9408f0a0ccb674e9e77ddef767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 8 Apr 2006 16:42:23 +0000 Subject: Ancient platforms support: - rint, lrint, M_PI (ffmpeg and goom) - avoid mkdir warnings - check for older _GUID_DEFINED too - ressurected generating inttypes, cleaned public os_types.h - moved function redefiniton used only in the old MSVC to central place Windows port update: - build internal ffmpeg: - workaround 'near' keyword problem - proper using __declspec(dllimport) Other changes: - LIBFFMPEG_CFLAGS --> LIBFFMPEG_CPPFLAGS CVS patchset: 7964 CVS date: 2006/04/08 16:42:23 --- src/xine-utils/Makefile.am | 1 + src/xine-utils/xineutils.h | 31 +++++++++++++++---------------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/xine-utils') diff --git a/src/xine-utils/Makefile.am b/src/xine-utils/Makefile.am index 6e22f0ab2..d4f37ceea 100644 --- a/src/xine-utils/Makefile.am +++ b/src/xine-utils/Makefile.am @@ -12,6 +12,7 @@ endif endif AM_CFLAGS = $(X_CFLAGS) +AM_CPPFLAGS=-DXINE_LIBRARY_COMPILE libxineutils_la_SOURCES = $(pppc_files) \ cpu_accel.c \ diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 4f3542154..c3b56c8c7 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2005 the xine project + * Copyright (C) 2000-2006 the xine project * * This file is part of xine, a free video player. * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.100 2006/02/14 19:12:16 dsalt Exp $ + * $Id: xineutils.h,v 1.101 2006/04/08 16:42:38 valtri Exp $ * */ #ifndef XINEUTILS_H @@ -65,9 +65,14 @@ extern "C" { #include #include -/* for alloca under MinGW */ -#ifdef HAVE_MALLOC_H -#include + +/* + * Mark exported data symbols for link engine library clients with older + * Win32 compilers + */ +#if defined(WIN32) && !defined(XINE_LIBRARY_COMPILE) +# define DL_IMPORT __declspec(dllimport) +# define extern DL_IMPORT extern #endif /* @@ -595,18 +600,7 @@ typedef union { /* Optimized/fast memcpy */ -/* - TODO : fix dll linkage problem for xine_fast_memcpy on win32 - - xine_fast_memcpy dll linkage is screwy here. - declaring as dllimport seems to fix the problem - but causes compiler warning with libxineutils -*/ -#ifdef _MSC_VER -__declspec( dllimport ) extern void *(* xine_fast_memcpy)(void *to, const void *from, size_t len); -#else extern void *(* xine_fast_memcpy)(void *to, const void *from, size_t len); -#endif #ifdef HAVE_XINE_INTERNAL_H /* Benchmark available memcpy methods */ @@ -978,6 +972,11 @@ const char *xine_guess_spu_encoding(void); */ int xine_monotonic_clock(struct timeval *tv, struct timezone *tz); +/* don't harm following code */ +#ifdef extern +# undef extern +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3