diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2006-04-08 16:42:23 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2006-04-08 16:42:23 +0000 |
commit | 8dc253dad613fa9408f0a0ccb674e9e77ddef767 (patch) | |
tree | 2d41848d2fd1c52032337315867352bce60f19eb /src/xine-utils/xineutils.h | |
parent | 6af6af590d98a8111bfc8dd498b11aecdbb3ecdd (diff) | |
download | xine-lib-8dc253dad613fa9408f0a0ccb674e9e77ddef767.tar.gz xine-lib-8dc253dad613fa9408f0a0ccb674e9e77ddef767.tar.bz2 |
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
Diffstat (limited to 'src/xine-utils/xineutils.h')
-rw-r--r-- | src/xine-utils/xineutils.h | 31 |
1 files changed, 15 insertions, 16 deletions
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 <stdio.h> #include <string.h> -/* for alloca under MinGW */ -#ifdef HAVE_MALLOC_H -#include <malloc.h> + +/* + * 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 |