Mercurial > mplayer.hg
diff loader/afl.c @ 1307:d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
attribute mismatch between caller/caller. wine/loader is less sensitive to
optimization now. (now that avifile-0.6 has the same patch installed, we're
a bit closer to their CVS tree)
Speed up win32 "QueryPerformanceFrequency" emulation on solaris.
author | jkeil |
---|---|
date | Thu, 12 Jul 2001 15:27:48 +0000 |
parents | 3b5f5d1c5041 |
children | ce45cce7f7a5 |
line wrap: on
line diff
--- a/loader/afl.c Thu Jul 12 15:23:26 2001 +0000 +++ b/loader/afl.c Thu Jul 12 15:27:48 2001 +0000 @@ -22,8 +22,11 @@ #include <config.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> +#include "win32.h" + #include <wine/winbase.h> #include <wine/windef.h> #include <wine/winuser.h> @@ -34,11 +37,13 @@ #include <wine/msacm.h> #include <wine/msacmdrv.h> #include "wineacm.h" -#pragma pack(1) +#include "ext.h" +#include "driver.h" + #define OpenDriverA DrvOpen -extern HDRVR VFWAPI DrvOpen(long); #define CloseDriver DrvClose -extern HDRVR VFWAPI DrvClose(long); + +#pragma pack(1) static PWINE_ACMSTREAM ACM_GetStream(HACMSTREAM has) { @@ -394,6 +399,8 @@ int wfxSrcSize; int wfxDstSize; + //printf("gcc-3.0 bug, pwfxSrc=%p, pwfxSrc->cbSize=%d\n", pwfxSrc, pwfxSrc->cbSize); + TRACE("(%p, 0x%08x, %p, %p, %p, %ld, %ld, %ld)\n", phas, had, pwfxSrc, pwfxDst, pwfltr, dwCallback, dwInstance, fdwOpen);