# HG changeset patch # User diego # Date 1230899327 0 # Node ID 504aa3e3076a24ed0022676cfe11b4b35d6fd59f # Parent 3f3f00ce912e7606ed517196e4534cc1dde9078d Reorder #includes and #ifdefs to avoid warnings and excessive #ifdeffery. diff -r 3f3f00ce912e -r 504aa3e3076a libmpcodecs/vd_qtvideo.c --- a/libmpcodecs/vd_qtvideo.c Fri Jan 02 11:46:34 2009 +0000 +++ b/libmpcodecs/vd_qtvideo.c Fri Jan 02 12:28:47 2009 +0000 @@ -3,19 +3,17 @@ #include #include "config.h" +#include "mp_msg.h" +#include "mpbswap.h" +#include "vd_internal.h" #ifdef CONFIG_QUICKTIME #include #define dump_ImageDescription(x) -#endif - +#else +#include "loader/ldt_keeper.h" +#include "loader/qtx/qtxsdk/components.h" #include "loader/wine/windef.h" - -#include "mp_msg.h" -#include "vd_internal.h" - -#ifdef WIN32_LOADER -#include "loader/ldt_keeper.h" #endif static vd_info_t info = { @@ -28,16 +26,6 @@ LIBVD_EXTERN(qtvideo) -#include "mpbswap.h" - -#ifndef CONFIG_QUICKTIME -#include "loader/qtx/qtxsdk/components.h" - -HMODULE WINAPI LoadLibraryA(LPCSTR); -FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); -int WINAPI FreeLibrary(HMODULE); -#endif - //static ComponentDescription desc; // for FindNextComponent() static ComponentInstance ci=NULL; // codec handle //static CodecInfo cinfo; // for ImageCodecGetCodecInfo() @@ -50,10 +38,13 @@ static GWorldPtr OutBufferGWorld = NULL;//a GWorld is some kind of description for a drawing environment static ImageDescriptionHandle framedescHandle; -static HINSTANCE qtime_qts; // handle to the preloaded quicktime.qts -static HMODULE handler; #ifndef CONFIG_QUICKTIME +HMODULE WINAPI LoadLibraryA(LPCSTR); +FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR); +int WINAPI FreeLibrary(HMODULE); +static HINSTANCE qtime_qts; // handle to the preloaded quicktime.qts +static HMODULE handler; static Component (*FindNextComponent)(Component prev,ComponentDescription* desc); static OSErr (*GetComponentInfo)(Component prev,ComponentDescription* desc,Handle h1,Handle h2,Handle h3); static long (*CountComponents)(ComponentDescription* desc);