Originally committed as revision 1663 to svn://svn.ffmpeg.org/ffmpeg/trunk
;;
OS/2)
TMPE=$TMPE".exe"
;;
OS/2)
TMPE=$TMPE".exe"
-ar="emxomfar -p32"
-strip="echo ignore strip"
-CFLAGS="-Zomf"
-LDFLAGS="-Zomf -Zstack 16384"
+ar="emxomfar -p64"
+ranlib="echo ignoring ranlib"
+strip="echo ignoring strip"
+CFLAGS="-Zomf -O3"
+LDFLAGS="-Zomf -Zstack 16384 -s"
SHFLAGS=""
FFSLDFLAGS=""
LIBPREF=""
SHFLAGS=""
FFSLDFLAGS=""
LIBPREF=""
-if test "x$targetos" != "xBeOS"; then
+if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
which freetype-config > /dev/null
if test $? -eq 0; then
if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` 2> /dev/null ; then
which freetype-config > /dev/null
if test $? -eq 0; then
if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` 2> /dev/null ; then
#include <sys/types.h>
#include <sys/select.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/select.h>
#include <stdlib.h>
+#define usleep(t) _sleep2((t)/1000)
#endif
#include <time.h>
#include <ctype.h>
#endif
#include <time.h>
#include <ctype.h>
$(LIB): $(OBJS)
rm -f $@
$(AR) rc $@ $(OBJS)
$(LIB): $(OBJS)
rm -f $@
$(AR) rc $@ $(OBJS)
-ifneq ($(CONFIG_OS2),yes)
$(SLIB): $(OBJS)
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
$(SLIB): $(OBJS)
$(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS)
+#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),
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),
+#if defined (CONFIG_OS2)
+#define floorf(n) floor(n)
+#endif
+
typedef struct {
/* fractional resampling */
uint32_t incr; /* fractional increment */
typedef struct {
/* fractional resampling */
uint32_t incr; /* fractional increment */
$(LIB): $(OBJS) $(PPOBJS)
rm -f $@
$(AR) rc $@ $(OBJS) $(PPOBJS)
$(LIB): $(OBJS) $(PPOBJS)
rm -f $@
$(AR) rc $@ $(OBJS) $(PPOBJS)
-ifneq ($(CONFIG_OS2),yes)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend