summaryrefslogtreecommitdiffstats
path: root/loader/afl.c
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-12 15:27:48 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-12 15:27:48 +0000
commita26b39974fb992cb400c6e9aff0a02737c2f4f59 (patch)
treebd6802ff279bb9ed79a9dec7f367861309741686 /loader/afl.c
parent009d2b0dc7ce5d7089bdb4136d1b575b115981d0 (diff)
downloadmpv-a26b39974fb992cb400c6e9aff0a02737c2f4f59.tar.bz2
mpv-a26b39974fb992cb400c6e9aff0a02737c2f4f59.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1308 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/afl.c')
-rw-r--r--loader/afl.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/loader/afl.c b/loader/afl.c
index 7816a3f139..bf79e75f27 100644
--- a/loader/afl.c
+++ b/loader/afl.c
@@ -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 @@ MMRESULT WINAPI acmStreamOpen(PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pw
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);