# define EXTERN_SYMBOL
#endif
+#if defined( USE_DLL )
+# define IMPORT_SYMBOL __declspec(dllimport)
+#else
+# define IMPORT_SYMBOL
+#endif
+
#define MODULE_STRING STRINGIFY( MODULE_NAME )
/*
{ \
if( i_oldsize ) \
{ \
- (p_ar) = realloc( p_ar, ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
+ (p_ar) = (void**)realloc( p_ar, ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
} \
else \
{ \
- (p_ar) = malloc( ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
+ (p_ar) = (void**)malloc( ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
} \
if( (i_oldsize) - (i_pos) ) \
{ \
# define _OFF_T_DEFINED
# else
# define off_t __int64
+ /* for wx compatibility typedef long off_t; */
# endif
# endif
# define vsnprintf _vsnprintf
# endif
-# ifndef _T
-# ifdef UNICODE
-# define _T(q) L##q
-# else
-# define _T(q) q
-# endif
-# endif
+# include <tchar.h>
#endif
/* lseek (defined in src/extras/libc.c) */
malloc( p_dec->fmt_in.i_extra + FF_INPUT_BUFFER_PADDING_SIZE );
memcpy( p_sys->p_context->extradata,
p_dec->fmt_in.p_extra, p_dec->fmt_in.i_extra );
- memset( p_sys->p_context->extradata + p_dec->fmt_in.i_extra, 0,
+ memset( (char*)p_sys->p_context->extradata + p_dec->fmt_in.i_extra, 0,
FF_INPUT_BUFFER_PADDING_SIZE );
}
/*****************************************************************************
* OpenEncoder: probe the encoder
*****************************************************************************/
-extern int16_t ff_mpeg4_default_intra_matrix[];
-extern int16_t ff_mpeg4_default_non_intra_matrix[];
+extern int16_t IMPORT_SYMBOL ff_mpeg4_default_intra_matrix[];
+extern int16_t IMPORT_SYMBOL ff_mpeg4_default_non_intra_matrix[];
int E_(OpenEncoder)( vlc_object_t *p_this )
{