Mercurial > mplayer.hg
view osdep/gettimeofday.c @ 20763:b6bd2e6fa76d
symplify aligned memory allocation on mingw32 by using ffmpeg's av_malloc/av_free
Patch by Emanuele Giaquinta % e P giaquinta A glauco P it %
Original thread:
Subject: [MPlayer-dev-eng] [PATCH] liba52/parse.c: avoid dirty hack on mingw32
Date: 10/25/2006 03:19 AM
author | gpoirier |
---|---|
date | Wed, 08 Nov 2006 14:48:36 +0000 |
parents | 08cac43f1e38 |
children | 936209c39ed1 |
line wrap: on
line source
#include "config.h" #ifndef HAVE_GETTIMEOFDAY #include <sys/time.h> #include <sys/timeb.h> void gettimeofday(struct timeval* t,void* timezone) { struct timeb timebuffer; ftime( &timebuffer ); t->tv_sec=timebuffer.time; t->tv_usec=1000*timebuffer.millitm; } #endif