# HG changeset patch # User michaelni # Date 1047384553 0 # Node ID 0980ae063f4ec5c65b71110c5341730aec8b05b7 # Parent 64c7c76ed17cd8fc376e24de1c0fa74385f1c81d restoring OS/2 compatibility patch by ("Slavik Gnatenko" ) diff -r 64c7c76ed17c -r 0980ae063f4e Makefile --- a/Makefile Mon Mar 10 11:48:33 2003 +0000 +++ b/Makefile Tue Mar 11 12:09:13 2003 +0000 @@ -125,9 +125,7 @@ $(LIB): $(OBJS) rm -f $@ $(AR) rc $@ $(OBJS) -ifneq ($(CONFIG_OS2),yes) $(RANLIB) $@ -endif $(SLIB): $(OBJS) $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) diff -r 64c7c76ed17c -r 0980ae063f4e opts.c --- a/opts.c Mon Mar 10 11:48:33 2003 +0000 +++ b/opts.c Tue Mar 11 12:09:13 2003 +0000 @@ -12,6 +12,10 @@ #include "avcodec.h" +#ifdef CONFIG_OS2 +#define strcasecmp(s1,s2) stricmp(s1,s2) +#endif + const AVOption avoptions_common[] = { AVOPTION_CODEC_FLAG("bit_exact", "use only bit-exact stuff", flags, CODEC_FLAG_BITEXACT, 0), AVOPTION_CODEC_FLAG("mm_force", "force mm flags", dsp_mask, FF_MM_FORCE, 0), diff -r 64c7c76ed17c -r 0980ae063f4e resample.c --- a/resample.c Mon Mar 10 11:48:33 2003 +0000 +++ b/resample.c Tue Mar 11 12:09:13 2003 +0000 @@ -24,6 +24,10 @@ #include "avcodec.h" +#if defined (CONFIG_OS2) +#define floorf(n) floor(n) +#endif + typedef struct { /* fractional resampling */ uint32_t incr; /* fractional increment */