# HG changeset patch # User bellard # Date 1063055143 0 # Node ID daa70b33fc44e18f97c191dd6df0cfab8bd464a7 # Parent f0b40efb1f65ced3fd66d05c085f77d4bf3c0c85 removed os_support.h diff -r f0b40efb1f65 -r daa70b33fc44 dsputil.h --- a/dsputil.h Mon Sep 08 21:04:11 2003 +0000 +++ b/dsputil.h Mon Sep 08 21:05:43 2003 +0000 @@ -492,4 +492,10 @@ } #endif +#if defined(CONFIG_OS2) || defined(CONFIG_SUNOS) +static inline float floorf(float f) { + return floor(f); +} #endif + +#endif diff -r f0b40efb1f65 -r daa70b33fc44 opts.c --- a/opts.c Mon Sep 08 21:04:11 2003 +0000 +++ b/opts.c Mon Sep 08 21:05:43 2003 +0000 @@ -11,7 +11,6 @@ */ #include "avcodec.h" -#include "os_support.h" const AVOption avoptions_common[] = { AVOPTION_CODEC_FLAG("bit_exact", "use only bit-exact stuff", flags, CODEC_FLAG_BITEXACT, 0), @@ -40,15 +39,32 @@ AVOPTION_END() }; +/* avoid compatibility problems by redefining it */ +static int av_strcasecmp(const char *s1, const char *s2) +{ + signed char val; + + for(;;) { + val = toupper(*s1) - toupper(*s2); + if (val != 0) + break; + if (*s1 != '\0') + break; + s1++; + s2++; + } + return val; +} + static int parse_bool(const AVOption *c, char *s, int *var) { int b = 1; /* by default -on- when present */ if (s) { - if (!strcasecmp(s, "off") || !strcasecmp(s, "false") + if (!av_strcasecmp(s, "off") || !av_strcasecmp(s, "false") || !strcmp(s, "0")) b = 0; - else if (!strcasecmp(s, "on") || !strcasecmp(s, "true") + else if (!av_strcasecmp(s, "on") || !av_strcasecmp(s, "true") || !strcmp(s, "1")) b = 1; else diff -r f0b40efb1f65 -r daa70b33fc44 resample.c --- a/resample.c Mon Sep 08 21:04:11 2003 +0000 +++ b/resample.c Mon Sep 08 21:05:43 2003 +0000 @@ -23,7 +23,6 @@ */ #include "avcodec.h" -#include "os_support.h" typedef struct { /* fractional resampling */