1 --- include/crtdbg.h.orig 2006-09-18 01:21:38.968750000 +0900
2 +++ include/crtdbg.h 2006-09-02 23:12:50.109375000 +0900
7 +#pragma GCC system_header
11 +#define _ASSERTE(expr) ((void)0)
15 --- include/winres.h.orig 2006-07-22 23:41:18.000000000 +0900
16 +++ include/winres.h 2006-07-22 23:41:18.000000000 +0900
21 +#pragma GCC system_header
24 +#define VS_VERSION_INFO 1
25 +#include <winresrc.h>
29 +#define IDC_STATIC (-1)
31 --- include/excpt.h.orig 2005-01-14 05:19:52.000000000 +0900
32 +++ include/excpt.h 2006-12-31 09:21:56.000000000 +0900
35 /* All the headers include this file. */
44 * NOTE: The constants structs and typedefs below should be defined in the
46 * The type of function that is expected as an exception handler to be
47 * installed with __try1.
49 -typedef EXCEPTION_DISPOSITION (*PEXCEPTION_HANDLER)
50 +typedef EXCEPTION_DISPOSITION (* PEXCEPTION_HANDLER)
51 (struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*);
55 __asm__ ("movl (%%esp),%%eax;movl %%eax,%%fs:0;addl $8,%%esp;" \
62 + IN PVOID TargetFrame OPTIONAL,
63 + IN PVOID TargetIp OPTIONAL,
64 + IN PEXCEPTION_RECORD ExceptionRecord OPTIONAL,
65 + IN PVOID ReturnValue
75 + typedef int (*PF)(void *, LPEXCEPTION_POINTERS);
76 + typedef void (*PH)(void *, LPEXCEPTION_POINTERS);
77 + typedef void (*PN)(void *);
78 + void Set(jmp_buf jb, void *pdata=NULL, PF pfilter=NULL, PH phandlerbody=NULL, PN pfinal=NULL)
80 + __builtin_memcpy(m_jmpbuf, jb, sizeof(jmp_buf));
82 + switch (reinterpret_cast<int>(pfilter))
87 + case EXCEPTION_CONTINUE_EXECUTION:
88 + m_filter=DefaultFilterContinueExecution;
90 + case EXCEPTION_EXECUTE_HANDLER:
91 + m_filter=DefaultFilterExecuteHandler;
93 + case EXCEPTION_CONTINUE_SEARCH:
94 + m_filter=DefaultFilterContinueSearch;
98 + m_handlerbody=phandlerbody;
100 + m_handlerbody=DefaultHandler;
104 + m_final=DefaultFinal;
105 + m_ER.pHandlerClass = this;
107 + asm("movl %%fs:0, %%eax\n\t"
108 + "movl %%eax, %0": : "m" (m_ER.prev): "%eax" );
109 + asm("movl %0, %%eax\n\t"
110 + "movl %%eax, %%fs:0": : "r" (&m_ER): "%eax" );
115 + asm("movl %0, %%eax \n\t"
116 + "movl %%eax, %%fs:0"
117 + : : "m" (m_ER.prev): "%eax");
120 + __SEHandler(const __SEHandler&);
121 + __SEHandler& operator=(const __SEHandler&);
124 + PEXCEPTION_HANDLER hp;
125 + __SEHandler *pHandlerClass;
127 + static EXCEPTION_DISPOSITION handler(
128 + struct _EXCEPTION_RECORD *pExceptionRecord,
129 + void * EstablisherFrame,
130 + struct _CONTEXT *ContextRecord,
131 + void * /*DispatcherContext*/)
133 + __SEHandler* pThis = reinterpret_cast< _ER * >(EstablisherFrame)->pHandlerClass;
134 + if ( pExceptionRecord->ExceptionFlags & EH_UNWINDING )
136 + pThis->m_final(pThis->m_pData);
137 + return ExceptionContinueSearch;
139 + EXCEPTION_POINTERS ep={pExceptionRecord, ContextRecord};
140 + switch ( pThis->m_filter(pThis->m_pData, &ep) )
142 + case EXCEPTION_EXECUTE_HANDLER:
143 + RtlUnwind(EstablisherFrame, &&__set_label, pExceptionRecord, 0);
145 + pThis->m_handlerbody(pThis->m_pData, &ep);
146 + ContextRecord->Ebp = pThis->m_jmpbuf[0];
147 + ContextRecord->Eip = pThis->m_jmpbuf[1];
148 + ContextRecord->Esp = pThis->m_jmpbuf[2];
149 + return ExceptionContinueExecution;
150 + case EXCEPTION_CONTINUE_SEARCH:
151 + return ExceptionContinueSearch;
152 + case EXCEPTION_CONTINUE_EXECUTION:
153 + return ExceptionContinueExecution;
155 + return ExceptionContinueExecution;
157 + static int DefaultFilterContinueSearch(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_CONTINUE_SEARCH; }
158 + static int DefaultFilterContinueExecution(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_CONTINUE_EXECUTION; }
159 + static int DefaultFilterExecuteHandler(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_EXECUTE_HANDLER; }
160 + static void DefaultHandler(void *, LPEXCEPTION_POINTERS) {}
161 + static void DefaultFinal(void *) {}
162 + typedef int (*handler_p)(
163 + struct _EXCEPTION_RECORD *ExceptionRecord,
164 + void * EstablisherFrame,
165 + struct _CONTEXT *ContextRecord,
166 + void * DispatcherContext);
176 #endif /* Not RC_INVOKED */
177 --- include/tchar.h.orig 2006-03-26 09:21:36.000000000 +0900
178 +++ include/tchar.h 2006-03-26 09:21:42.000000000 +0900
180 #define _ttelldir _wtelldir
181 #define _tseekdir _wseekdir
183 +#define _ttempnam _wtempnam
186 #else /* Not _UNICODE */
190 #define _ttelldir telldir
191 #define _tseekdir seekdir
193 +#define _ttempnam _tempnam
195 #endif /* Not _UNICODE */
198 --- include/amvideo.h.orig 2006-11-19 08:08:30.000000000 +0900
199 +++ include/amvideo.h 2007-01-16 23:11:24.656250000 +0900
201 BITMAPINFOHEADER bmiHeader;
203 typedef struct tagVIDEOINFO {
207 - DWORD dwBitErrorRate,
211 + DWORD dwBitErrorRate;
212 REFERENCE_TIME AvgTimePerFrame;
213 BITMAPINFOHEADER bmiHeader;
215 --- include/bdatypes.h.orig 2006-11-19 08:08:30.000000000 +0900
216 +++ include/bdatypes.h 2007-01-16 23:21:10.062500000 +0900
218 } MEDIA_SAMPLE_CONTENT;
219 /*--- DirectShow Reference - DirectShow Structures */
222 - DWORD dwPacketLength
225 + DWORD dwPacketLength;
227 } MPEG2_TRANSPORT_STRIDE;
230 --- include/imm.h.orig 2007-12-27 23:07:19.000000000 +0900
231 +++ include/imm.h 2008-11-08 07:28:48.983375000 +0900
233 #define UI_CAP_ROTANY 4
234 #define SCS_CAP_COMPSTR 1
235 #define SCS_CAP_MAKEREAD 2
236 +#define SCS_CAP_SETRECONVERTSTRING 4
237 #define SELECT_CAP_CONVERSION 1
238 #define SELECT_CAP_SENTENCE 2
241 #define IME_REGWORD_STYLE_USER_FIRST 0x80000000
242 #define IME_REGWORD_STYLE_USER_LAST 0xFFFFFFFF
243 #define IMR_RECONVERTSTRING 4
244 +#define IMR_CONFIRMRECONVERTSTRING 5
245 #define IMR_QUERYCHARPOSITION 6
246 #define SOFTKEYBOARD_TYPE_T1 1
247 #define SOFTKEYBOARD_TYPE_C1 2
249 DWORD dwCompStrOffset;
250 DWORD dwTargetStrLen;
251 DWORD dwTargetStrOffset;
252 -} RECONVERTSTRING, *PRECONVERTSTRING;
253 +} RECONVERTSTRING, *PRECONVERTSTRING, *LPRECONVERTSTRING;
254 typedef struct tagREGISTERWORDA {
257 --- include/oaidl.h.orig 2006-11-19 08:08:33.000000000 +0900
258 +++ include/oaidl.h 2007-01-20 09:08:24.625000000 +0900
260 typedef _COM_interface ICreateErrorInfo *LPCREATEERRORINFO;
261 typedef _COM_interface ISupportErrorInfo *LPSUPPORTERRORINFO;
262 typedef _COM_interface IRecordInfo *LPRECORDINFO;
263 +typedef _COM_interface IErrorLog *LPERRORLOG;
264 +typedef _COM_interface IPropertyBag *LPPROPERTYBAG;
266 extern const IID IID_ITypeLib;
267 extern const IID IID_ITypeLib2;
272 +EXTERN_C const IID IID_IErrorLog;
273 +#define INTERFACE IErrorLog
274 +DECLARE_INTERFACE_(IErrorLog,IUnknown)
276 + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
277 + STDMETHOD_(ULONG,AddRef)(THIS) PURE;
278 + STDMETHOD_(ULONG,Release)(THIS) PURE;
279 + STDMETHOD(AddError)(THIS_ LPCOLESTR,LPEXCEPINFO) PURE;
283 +EXTERN_C const IID IID_IPropertyBag;
284 +#define INTERFACE IPropertyBag
285 +DECLARE_INTERFACE_(IPropertyBag,IUnknown)
287 + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
288 + STDMETHOD_(ULONG,AddRef)(THIS) PURE;
289 + STDMETHOD_(ULONG,Release)(THIS) PURE;
290 + STDMETHOD(Read)(THIS_ LPCOLESTR,LPVARIANT,LPERRORLOG) PURE;
291 + STDMETHOD(Write)(THIS_ LPCOLESTR,LPVARIANT) PURE;
298 --- include/objidl.h.orig 2006-11-19 08:08:34.000000000 +0900
299 +++ include/objidl.h 2008-11-30 11:56:53.875000000 +0900
306 struct IAdviseSink *pAdvSink;
310 typedef struct tagSTATPROPSETSTG {
318 typedef enum tagEXTCONN {
322 typedef enum tagSERVERCALL {
323 SERVERCALL_ISHANDLED,SERVERCALL_REJECTED,SERVERCALL_RETRYLATER
326 typedef struct tagCAUB {
328 unsigned char *pElems;
330 PROPSETFLAG_DEFAULT,PROPSETFLAG_NONSIMPLE,PROPSETFLAG_ANSI,
331 PROPSETFLAG_UNBUFFERED=4
334 typedef struct tagSTORAGELAYOUT {
336 OLECHAR* pwcsElementName;
338 DECLARE_ENUMERATOR(FORMATETC);
339 DECLARE_ENUMERATOR(HLITEM);
340 DECLARE_ENUMERATOR(STATDATA);
342 DECLARE_ENUMERATOR(STATPROPSETSTG);
343 DECLARE_ENUMERATOR(STATPROPSTG);
345 DECLARE_ENUMERATOR(STATSTG);
346 DECLARE_ENUMERATOR_(IEnumString,LPOLESTR);
347 DECLARE_ENUMERATOR_(IEnumMoniker,_COM_interface IMoniker*);
349 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
350 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
351 STDMETHOD_(ULONG,Release)(THIS) PURE;
352 - STDMETHOD(AddConnection)(THIS_ DWORD,DWORD) PURE;
353 - STDMETHOD(ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
354 + STDMETHOD_(DWORD,AddConnection)(THIS_ DWORD,DWORD) PURE;
355 + STDMETHOD_(DWORD,ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
364 EXTERN_C const IID IID_IPropertyStorage;
365 #define INTERFACE IPropertyStorage
366 DECLARE_INTERFACE_(IPropertyStorage,IUnknown)
368 STDMETHOD(Enum)(THIS_ IEnumSTATPROPSETSTG**) PURE;
373 EXTERN_C const IID IID_IClientSecurity;
374 #define INTERFACE IClientSecurity
375 --- include/objfwd.h.orig 2006-03-26 09:21:36.000000000 +0900
376 +++ include/objfwd.h 2006-03-26 09:21:42.000000000 +0900
378 typedef _COM_interface IEnumFORMATETC *LPENUMFORMATETC;
379 typedef _COM_interface IEnumSTATDATA *LPENUMSTATDATA;
380 typedef _COM_interface IEnumSTATSTG *LPENUMSTATSTG;
381 -typedef _COM_interface IEnumSTATPROPSTG LPENUMSTATPROPSTG;
382 +typedef _COM_interface IEnumSTATPROPSTG *LPENUMSTATPROPSTG;
383 typedef _COM_interface IEnumString *LPENUMSTRING;
384 typedef _COM_interface IEnumUnknown *LPENUMUNKNOWN;
385 typedef _COM_interface IStorage *LPSTORAGE;
386 --- include/uxtheme.h.orig 2006-11-19 08:08:36.000000000 +0900
387 +++ include/uxtheme.h 2007-01-18 18:51:37.125000000 +0900
392 -#if (_WIN32_WINNT >= 0x0501)
393 +//#if (_WIN32_WINNT >= 0x0501)
394 #define DTBG_CLIPRECT 0x00000001
395 #define DTBG_DRAWSOLID 0x00000002
396 #define DTBG_OMITBORDER 0x00000004
398 HTHEME WINAPI OpenThemeData(HWND,LPCWSTR);
399 void WINAPI SetThemeAppProperties(DWORD);
400 HRESULT WINAPI SetWindowTheme(HWND,LPCWSTR,LPCWSTR);
406 --- include/winbase.h.orig 2006-11-19 08:08:36.000000000 +0900
407 +++ include/winbase.h 2007-07-27 21:14:27.621750000 +0900
408 @@ -993,12 +993,14 @@
410 CHAR szPathName[OFS_MAXPATHNAME];
411 } OFSTRUCT,*LPOFSTRUCT,*POFSTRUCT;
413 typedef struct _WIN_CERTIFICATE {
416 WORD wCertificateType;
417 BYTE bCertificate[1];
418 } WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
420 #if (_WIN32_WINNT >= 0x0501)
421 typedef struct tagACTCTXA {
423 @@ -1342,8 +1344,8 @@
424 WINBASEAPI HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,PVOID,FINDEX_SEARCH_OPS,PVOID,DWORD);
425 WINBASEAPI BOOL WINAPI FindFirstFreeAce(PACL,PVOID*);
426 #if (_WIN32_WINNT >= 0x0500)
427 -WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPCSTR,DWORD);
428 -WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPCWSTR,DWORD);
429 +WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
430 +WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
431 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointA(LPSTR,LPSTR,DWORD);
432 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointW(LPWSTR,LPWSTR,DWORD);
434 @@ -1351,7 +1353,7 @@
435 WINBASEAPI BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
436 WINBASEAPI BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
437 #if (_WIN32_WINNT >= 0x0500)
438 -WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPCSTR,DWORD);
439 +WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
440 WINBASEAPI BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
441 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
442 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
443 @@ -1463,10 +1465,10 @@
444 WINBASEAPI DWORD WINAPI GetLogicalDrives(void);
445 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsA(DWORD,LPSTR);
446 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsW(DWORD,LPWSTR);
447 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
448 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
449 WINBASEAPI DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
450 WINBASEAPI DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
453 WINBASEAPI BOOL WINAPI GetMailslotInfo(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD);
454 WINBASEAPI DWORD WINAPI GetModuleFileNameA(HINSTANCE,LPSTR,DWORD);
455 WINBASEAPI DWORD WINAPI GetModuleFileNameW(HINSTANCE,LPWSTR,DWORD);
456 @@ -1504,9 +1506,9 @@
458 WINBASEAPI HANDLE WINAPI GetProcessHeap(VOID);
459 WINBASEAPI DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
460 -#if (_WIN32_WINNT >= 0x0501)
461 +//#if (_WIN32_WINNT >= 0x0501)
462 WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
465 #if (_WIN32_WINNT >= 0x0500)
466 WINBASEAPI BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
468 @@ -1784,9 +1786,9 @@
469 WINBASEAPI BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
470 WINBASEAPI HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
471 WINBASEAPI HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
472 -#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
473 +//#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
474 WINBASEAPI HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
477 WINBASEAPI BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
478 WINBASEAPI HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
479 WINBASEAPI HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
480 @@ -2024,6 +2026,7 @@
481 WINBASEAPI BOOL WINAPI WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR);
482 WINBASEAPI BOOL WINAPI WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR);
483 WINBASEAPI DWORD WINAPI WriteTapemark(HANDLE,DWORD,DWORD,BOOL);
484 +WINBASEAPI BOOL WINAPI CheckTokenMembership(HANDLE,PSID,PBOOL);
486 #if (_WIN32_WINNT >= 0x0501)
487 WINBASEAPI BOOL WINAPI ZombifyActCtx(HANDLE);
488 @@ -2130,9 +2133,9 @@
489 #define GetFileAttributesEx GetFileAttributesExW
490 #define GetFullPathName GetFullPathNameW
491 #define GetLogicalDriveStrings GetLogicalDriveStringsW
492 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
493 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
494 #define GetLongPathName GetLongPathNameW
497 #define GetModuleFileName GetModuleFileNameW
498 #define GetModuleHandle GetModuleHandleW
499 #if (_WIN32_WINNT >= 0x0500)
500 @@ -2325,9 +2328,9 @@
501 #define GetFileAttributesEx GetFileAttributesExA
502 #define GetFullPathName GetFullPathNameA
503 #define GetLogicalDriveStrings GetLogicalDriveStringsA
504 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
505 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
506 #define GetLongPathName GetLongPathNameA
509 #define GetNamedPipeHandleState GetNamedPipeHandleStateA
510 #define GetModuleHandle GetModuleHandleA
511 #if (_WIN32_WINNT >= 0x0500)
512 --- include/wininet.h.orig 2006-03-26 09:21:36.000000000 +0900
513 +++ include/wininet.h 2006-04-04 23:18:14.000000000 +0900
515 BOOL WINAPI InternetAutodial(DWORD,DWORD);
516 BOOL WINAPI InternetAutodialHangup(DWORD);
517 BOOL WINAPI InternetGetConnectedState(LPDWORD,DWORD);
518 +BOOL WINAPI InternetGetConnectedStateEx(LPDWORD,LPTSTR,DWORD,DWORD);
519 BOOL WINAPI InternetSetDialState(LPCTSTR,DWORD,DWORD);
520 BOOL WINAPI InternetReadFileExA(HINTERNET,LPINTERNET_BUFFERSA,DWORD,DWORD_PTR);
521 BOOL WINAPI InternetReadFileExW(HINTERNET,LPINTERNET_BUFFERSW,DWORD,DWORD_PTR);
522 --- include/winnt.h.orig 2006-11-19 08:08:37.000000000 +0900
523 +++ include/winnt.h 2007-01-16 07:06:57.796875000 +0900
529 -#define C_ASSERT(expr) typedef char __C_ASSERT__[(expr)?1:-1]
532 +//#define C_ASSERT(expr) typedef char __C_ASSERT__[(expr)?1:-1]
537 --- include/winver.h.orig 2006-03-26 09:21:36.000000000 +0900
538 +++ include/winver.h 2006-03-26 09:21:42.000000000 +0900
539 @@ -101,10 +101,10 @@
540 DWORD WINAPI VerFindFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT,LPWSTR,PUINT);
541 DWORD WINAPI VerInstallFileA(DWORD,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,PUINT);
542 DWORD WINAPI VerInstallFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT);
543 -DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,PDWORD);
544 -DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,PDWORD);
545 -BOOL WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,PVOID);
546 -BOOL WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,PVOID);
547 +DWORD WINAPI GetFileVersionInfoSizeA(LPSTR,PDWORD);
548 +DWORD WINAPI GetFileVersionInfoSizeW(LPWSTR,PDWORD);
549 +BOOL WINAPI GetFileVersionInfoA(LPSTR,DWORD,DWORD,PVOID);
550 +BOOL WINAPI GetFileVersionInfoW(LPWSTR,DWORD,DWORD,PVOID);
551 DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
552 DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
553 BOOL WINAPI VerQueryValueA(const LPVOID,LPSTR,LPVOID*,PUINT);
554 --- include/wtypes.h.orig 2006-11-19 08:08:37.000000000 +0900
555 +++ include/wtypes.h 2007-01-19 23:05:02.531250000 +0900
557 unsigned short asData[1];
560 +typedef struct _COAUTHIDENTITY
562 + /* [size_is] */ USHORT *User;
563 + /* [range] */ ULONG UserLength;
564 + /* [size_is] */ USHORT *Domain;
565 + /* [range] */ ULONG DomainLength;
566 + /* [size_is] */ USHORT *Password;
567 + /* [range] */ ULONG PasswordLength;
571 +typedef WORD CLIPFORMAT,*LPCLIPFORMAT;
574 typedef WCHAR OLECHAR;
575 typedef LPWSTR LPOLESTR;
580 +typedef union tagCY *LPCY;
582 typedef struct tagBSTRBLOB {
585 #define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;}
587 typedef void *HMETAFILEPICT;
589 +typedef enum tagTYSPEC {
595 + TYSPEC_PACKAGENAME,
602 + LPOLESTR pMimeType;
604 + LPOLESTR pFileName;
606 + LPOLESTR pPackageName;
615 +typedef struct tagCSPLATFORM {
619 + DWORD dwProcessorArch;
622 +typedef struct tagQUERYCONTEXT {
624 + CSPLATFORM Platform;
637 --- include/sys/stat.h.orig 2006-06-25 19:45:42.000000000 +0900
638 +++ include/sys/stat.h 2006-12-30 18:26:27.578125000 +0900
644 +#pragma GCC system_header
647 /* All the headers include this file. */
649 --- include/adoctint.h.orig 2005-04-04 18:50:18.000000000 +0900
650 +++ include/adoctint.h 2007-12-14 23:43:07.754125000 +0900
652 //--------------------------------------------------------------------
656 +#pragma GCC system_header
661 @@ -2489,11 +2492,11 @@
662 #endif /* __Procedure_INTERFACE_DEFINED__ */
663 EXTERN_C const CLSID CLSID_Catalog;
668 EXTERN_C const CLSID CLSID_Table;
673 #ifndef __Property_INTERFACE_DEFINED__
674 #define __Property_INTERFACE_DEFINED__
675 @@ -2635,23 +2638,23 @@
676 #endif /* __Property_INTERFACE_DEFINED__ */
677 EXTERN_C const CLSID CLSID_Group;
682 EXTERN_C const CLSID CLSID_User;
687 EXTERN_C const CLSID CLSID_Column;
692 EXTERN_C const CLSID CLSID_Index;
697 EXTERN_C const CLSID CLSID_Key;
702 #ifndef __Tables_INTERFACE_DEFINED__
703 #define __Tables_INTERFACE_DEFINED__
704 @@ -3332,8 +3335,8 @@
705 /* [in] */ VARIANT Item,
706 /* [defaultvalue][in] */ KeyTypeEnum Type,
707 /* [optional][in] */ VARIANT Column,
708 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = L"",
709 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = L"") = 0;
710 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = const_cast<BSTR>(L""),
711 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = const_cast<BSTR>(L"")) = 0;
713 virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete(
714 /* [in] */ VARIANT Item) = 0;
715 --- include/adodef.h.orig 2005-04-04 18:50:18.000000000 +0900
716 +++ include/adodef.h 2007-01-05 21:48:51.265625000 +0900
722 +#pragma GCC system_header
725 // TYPELIB MAJOR VERSIONS
727 --- include/adoguids.h.orig 2005-04-04 18:50:18.000000000 +0900
728 +++ include/adoguids.h 2007-01-05 21:50:10.265625000 +0900
730 //-----------------------------------------------------------------------------
734 +#pragma GCC system_header
737 #define STRING_GUID(l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) l##-##w1##-##w2##-##b1##b2##-##b3##b4##b5##b6##b7##b8
739 #if defined(__midl) || defined(GEN_MIDL)
740 --- include/adoint.h.orig 2005-04-04 18:50:18.000000000 +0900
741 +++ include/adoint.h 2007-01-02 17:36:43.593750000 +0900
743 //--------------------------------------------------------------------
747 +#pragma GCC system_header
752 @@ -3494,7 +3497,7 @@
753 #endif /* __ADOConnectionConstruction_INTERFACE_DEFINED__ */
754 EXTERN_C const CLSID CLSID_Connection;
759 #ifndef ___Record_INTERFACE_DEFINED__
760 #define ___Record_INTERFACE_DEFINED__
761 @@ -3793,7 +3796,7 @@
762 #endif /* ___Record_INTERFACE_DEFINED__ */
763 EXTERN_C const CLSID CLSID_Record;
768 #ifndef ___Stream_INTERFACE_DEFINED__
769 #define ___Stream_INTERFACE_DEFINED__
770 @@ -4123,7 +4126,7 @@
771 #endif /* ___Stream_INTERFACE_DEFINED__ */
772 EXTERN_C const CLSID CLSID_Stream;
777 #ifndef __ADORecordConstruction_INTERFACE_DEFINED__
778 #define __ADORecordConstruction_INTERFACE_DEFINED__
779 @@ -4405,11 +4408,11 @@
780 #endif /* __ADOCommandConstruction_INTERFACE_DEFINED__ */
781 EXTERN_C const CLSID CLSID_Command;
786 EXTERN_C const CLSID CLSID_Recordset;
791 #ifndef __Recordset15_INTERFACE_DEFINED__
792 #define __Recordset15_INTERFACE_DEFINED__
793 @@ -8305,7 +8308,7 @@
794 #endif /* ___Parameter_INTERFACE_DEFINED__ */
795 EXTERN_C const CLSID CLSID_Parameter;
800 #ifndef __Parameters_INTERFACE_DEFINED__
801 #define __Parameters_INTERFACE_DEFINED__
802 --- include/bcrypt.h.orig 2008-01-18 22:17:12.000000000 +0900
803 +++ include/bcrypt.h 2008-04-10 22:57:54.410750000 +0900
808 -#if !defined(__midl)
809 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
811 -#define BCRYPT_STRUCT_ALIGNMENT
812 -#endif /*!defined(__midl)*/
818 #define BCRYPT_OBJECT_ALIGNMENT 4
821 -#if !defined(__midl)
822 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
824 #define BCRYPT_STRUCT_ALIGNMENT
825 -#endif /*!defined(__midl)*/
828 // DeriveKey KDF Types
831 typedef BCRYPT_KEY_LENGTHS_STRUCT BCRYPT_AUTH_TAG_LENGTHS_STRUCT;
833 -#pragma pack(push, BCRYPT_OBJECT_ALIGNMENT)
834 +#if defined(_IA64_) || defined(_AMD64_)
835 +#pragma pack(push, 8)
837 +#pragma pack(push, 4)
839 typedef BCRYPT_STRUCT_ALIGNMENT struct _BCRYPT_OID
842 --- include/commctrl.h.orig 2008-01-18 22:17:14.000000000 +0900
843 +++ include/commctrl.h 2009-02-16 21:34:39.065125000 +0900
845 #ifndef _INC_COMMCTRL
846 #define _INC_COMMCTRL
851 +#define __inline inline
853 +#define __inline static __inline__
856 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
857 #pragma warning(push)
858 #pragma warning(disable:4001) /* nonstandard extension : single line comment */
861 #ifndef _HRESULT_DEFINED
862 #define _HRESULT_DEFINED
863 -typedef __success(return >= 0) long HRESULT;
864 +typedef long HRESULT;
865 #endif // !_HRESULT_DEFINED
870 // Shell reserved (0U-580U) - (0U-589U)
873 #define CDN_FIRST (0U-601U) // common dialog (new)
874 #define CDN_LAST (0U-699U)
877 #define TBN_FIRST (0U-700U) // toolbar
878 #define TBN_LAST (0U-720U)
880 #define ILP_DOWNLEVEL 1 // Write or reads the stream using downlevel sematics.
883 -WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
884 +//WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
885 WINCOMMCTRLAPI HRESULT WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD dwFlags, LPSTREAM pstm);
891 #if (_WIN32_WINNT >= 0x0501)
892 -WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
893 +//WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
896 FORCEINLINE HIMAGELIST IImageListToHIMAGELIST(struct IImageList *himl)
897 @@ -8056,8 +8066,10 @@
898 #if (_WIN32_WINNT >= 0x0501)
900 // custom combobox control messages
901 +#ifndef CB_SETMINVISIBLE
902 #define CB_SETMINVISIBLE (CBM_FIRST + 1)
903 #define CB_GETMINVISIBLE (CBM_FIRST + 2)
905 #define CB_SETCUEBANNER (CBM_FIRST + 3)
906 #define CB_GETCUEBANNER (CBM_FIRST + 4)
908 @@ -8651,7 +8663,7 @@
910 #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
911 #if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
912 -#include "commctrl.inl"
913 +//#include "commctrl.inl"
914 #endif /* ISOLATION_AWARE_ENABLED */
917 @@ -8666,6 +8678,10 @@
925 #endif /* _INC_COMMCTRL */
928 --- include/control.h.orig 2005-04-14 17:54:38.000000000 +0900
929 +++ include/control.h 2007-01-02 22:16:33.031250000 +0900
932 +#pragma GCC system_header
936 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
937 --- include/dispex.h.orig 2007-03-31 19:44:54.000000000 +0900
938 +++ include/dispex.h 2007-03-24 17:40:20.000000000 +0900
941 +#pragma GCC system_header
945 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
946 --- include/filter.h.orig 2005-04-14 17:54:44.000000000 +0900
947 +++ include/filter.h 2007-01-02 11:15:03.671875000 +0900
950 +#pragma GCC system_header
954 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
955 --- include/gdiplusbitmap.h.orig 2005-04-14 17:54:44.000000000 +0900
956 +++ include/gdiplusbitmap.h 2007-01-02 11:17:13.125000000 +0900
959 +#pragma GCC system_header
961 /**************************************************************************\
963 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
964 --- include/gdiplusbrush.h.orig 2005-04-14 17:54:44.000000000 +0900
965 +++ include/gdiplusbrush.h 2007-01-02 10:33:22.734375000 +0900
968 +#pragma GCC system_header
970 /**************************************************************************\
972 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
973 --- include/gdiplusenums.h.orig 2003-03-26 16:34:34.000000000 +0900
974 +++ include/gdiplusenums.h 2004-12-30 20:42:34.000000000 +0900
977 #define GDIP_EMFPLUS_RECORD_BASE 0x00004000
978 #define GDIP_WMF_RECORD_BASE 0x00010000
979 -#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE))
980 +#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((n) | GDIP_WMF_RECORD_BASE)
981 #define GDIP_EMFPLUS_RECORD_TO_WMF(n) ((n) & (~GDIP_WMF_RECORD_BASE))
982 #define GDIP_IS_WMF_RECORDTYPE(n) (((n) & GDIP_WMF_RECORD_BASE) != 0)
984 --- include/gdiplusfont.h.orig 2005-04-14 17:54:44.000000000 +0900
985 +++ include/gdiplusfont.h 2007-01-02 10:35:57.671875000 +0900
988 +#pragma GCC system_header
990 /**************************************************************************\
992 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
993 --- include/gdiplusheaders.h.orig 2008-01-18 22:17:46.000000000 +0900
994 +++ include/gdiplusheaders.h 2008-03-28 21:44:34.907750000 +0900
997 class CachedBitmap : public GdiplusBase
1000 + friend class Graphics;
1003 CachedBitmap(IN Bitmap *bitmap,
1006 UINT GetDownLevelRasterizationLimit() const;
1008 - static UINT Metafile::EmfToWmfBits(
1009 + static UINT EmfToWmfBits(
1010 IN HENHMETAFILE hemf,
1013 --- include/gdiplusimageattributes.h.orig 2005-04-14 17:54:44.000000000 +0900
1014 +++ include/gdiplusimageattributes.h 2007-01-02 10:21:23.031250000 +0900
1017 #ifndef _GDIPLUSIMAGEATTRIBUTES_H
1018 #define _GDIPLUSIMAGEATTRIBUTES_H
1020 +#pragma GCC system_header
1023 class GpImageAttributes;
1025 --- include/gdiplusimaging.h.orig 2003-03-26 16:34:34.000000000 +0900
1026 +++ include/gdiplusimaging.h 2007-12-04 21:16:38.000000000 +0900
1031 - PixelFormat PixelFormat;
1032 + ::Gdiplus::PixelFormat PixelFormat;
1036 --- include/gdiplusmatrix.h.orig 2005-04-14 17:54:44.000000000 +0900
1037 +++ include/gdiplusmatrix.h 2007-01-02 10:32:35.203125000 +0900
1040 +#pragma GCC system_header
1042 /**************************************************************************\
1044 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1045 --- include/gdipluspath.h.orig 2005-04-14 17:54:44.000000000 +0900
1046 +++ include/gdipluspath.h 2007-01-02 10:34:33.125000000 +0900
1049 +#pragma GCC system_header
1051 /**************************************************************************\
1053 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1054 --- include/gdipluspen.h.orig 2005-04-14 17:54:44.000000000 +0900
1055 +++ include/gdipluspen.h 2007-01-02 10:34:12.593750000 +0900
1058 +#pragma GCC system_header
1060 /**************************************************************************\
1062 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1063 --- include/gdiplusregion.h.orig 2005-04-14 17:54:44.000000000 +0900
1064 +++ include/gdiplusregion.h 2007-01-02 10:35:23.453125000 +0900
1067 +#pragma GCC system_header
1069 /**************************************************************************\
1071 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1072 --- include/gdiplusstringformat.h.orig 2005-04-14 17:54:44.000000000 +0900
1073 +++ include/gdiplusstringformat.h 2007-08-29 23:10:06.497500000 +0900
1078 - StringTrimming StringFormat::GetTrimming() const
1079 + StringTrimming GetTrimming() const
1081 StringTrimming trimming;
1082 SetStatus(DllExports::GdipGetStringFormatTrimming(
1083 --- include/imagehlp.h.orig 2008-03-22 06:10:42.084500000 +1000
1084 +++ include/imagehlp.h 2009-02-16 21:34:39.065125000 +0900
1087 +#pragma GCC system_header
1089 /*++ BUILD Version: 0000 Increment this if a change has global effects
1091 Copyright (c) Microsoft Corporation. All rights reserved.
1093 #include <wintrust.h>
1099 +#define __inline inline
1101 +#define __inline static __inline__
1109 __in HANDLE FileHandle,
1110 - __in_opt PSYSTEMTIME pSystemTime
1111 + __in_opt LPSYSTEMTIME pSystemTime
1115 @@ -3950,7 +3960,7 @@
1116 // ThreadId must be 4 bytes on all architectures.
1119 -C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1120 +//C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1122 typedef struct _MINIDUMP_THREAD {
1124 @@ -4684,5 +4694,9 @@
1132 #endif // _IMAGEHLP_
1134 --- include/intsafe.h.orig 2008-03-22 06:10:42.100125000 +1000
1135 +++ include/intsafe.h 2008-03-24 02:25:53.710750000 +1000
1140 -typedef __success(return >= 0) long HRESULT;
1141 +typedef long HRESULT;
1143 #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0)
1144 #define FAILED(hr) (((HRESULT)(hr)) < 0)
1146 || defined(_M_IA64) || defined(_M_AMD64)
1147 #define UInt32x32To64(a, b) (((unsigned __int64)((unsigned int)(a))) * ((unsigned __int64)((unsigned int)(b))))
1148 #elif defined(_M_IX86)
1149 -#define UInt32x32To64(a, b) ((unsigned __int64)(((unsigned __int64)((unsigned int)(a))) * ((unsigned int)(b))))
1150 +//#define UInt32x32To64(a, b) ((unsigned __int64)(((unsigned __int64)((unsigned int)(a))) * ((unsigned int)(b))))
1152 #error Must define a target architecture.
1154 @@ -142,22 +142,22 @@
1156 // Min/Max type values
1158 -#define INT8_MIN (-127i8 - 1)
1159 +#define INT8_MIN ((signed char)(-127) - 1)
1160 #define SHORT_MIN (-32768)
1161 -#define INT16_MIN (-32767i16 - 1)
1162 -#define INT_MIN (-2147483647 - 1)
1163 -#define INT32_MIN (-2147483647i32 - 1)
1164 -#define LONG_MIN (-2147483647L - 1)
1165 -#define LONGLONG_MIN (-9223372036854775807i64 - 1)
1166 -#define LONG64_MIN (-9223372036854775807i64 - 1)
1167 -#define INT64_MIN (-9223372036854775807i64 - 1)
1168 +#define INT16_MIN ((short)(-32767) - 1)
1169 +//#define INT_MIN (-2147483647 - 1)
1170 +#define INT32_MIN (-2147483647L - 1)
1171 +//#define LONG_MIN (-2147483647L - 1)
1172 +#define LONGLONG_MIN (-9223372036854775807ll - 1)
1173 +#define LONG64_MIN (-9223372036854775807ll - 1)
1174 +#define INT64_MIN (-9223372036854775807ll - 1)
1175 #define INT128_MIN (-170141183460469231731687303715884105727i128 - 1)
1178 -#define INT_PTR_MIN (-9223372036854775807i64 - 1)
1179 -#define LONG_PTR_MIN (-9223372036854775807i64 - 1)
1180 -#define PTRDIFF_T_MIN (-9223372036854775807i64 - 1)
1181 -#define SSIZE_T_MIN (-9223372036854775807i64 - 1)
1182 +#define INT_PTR_MIN (-9223372036854775807ll - 1)
1183 +#define LONG_PTR_MIN (-9223372036854775807ll - 1)
1184 +#define PTRDIFF_T_MIN (-9223372036854775807ll - 1)
1185 +#define SSIZE_T_MIN (-9223372036854775807ll - 1)
1187 #define INT_PTR_MIN (-2147483647 - 1)
1188 #define LONG_PTR_MIN (-2147483647L - 1)
1189 @@ -165,44 +165,44 @@
1190 #define SSIZE_T_MIN (-2147483647L - 1)
1193 -#define INT8_MAX 127i8
1194 -#define UINT8_MAX 0xffui8
1195 +#define INT8_MAX ((signed char)(127))
1196 +#define UINT8_MAX ((unsigned char)(0xff))
1197 #define BYTE_MAX 0xff
1198 #define SHORT_MAX 32767
1199 -#define INT16_MAX 32767i16
1200 +#define INT16_MAX ((short)(32767))
1201 #define USHORT_MAX 0xffff
1202 -#define UINT16_MAX 0xffffui16
1203 +#define UINT16_MAX ((unsigned short)(0xffff))
1204 #define WORD_MAX 0xffff
1205 #define INT_MAX 2147483647
1206 -#define INT32_MAX 2147483647i32
1207 +#define INT32_MAX 2147483647L
1208 #define UINT_MAX 0xffffffff
1209 -#define UINT32_MAX 0xffffffffui32
1210 +#define UINT32_MAX 0xffffffffu
1211 #define LONG_MAX 2147483647L
1212 #define ULONG_MAX 0xffffffffUL
1213 #define DWORD_MAX 0xffffffffUL
1214 -#define LONGLONG_MAX 9223372036854775807i64
1215 -#define LONG64_MAX 9223372036854775807i64
1216 -#define INT64_MAX 9223372036854775807i64
1217 -#define ULONGLONG_MAX 0xffffffffffffffffui64
1218 -#define DWORDLONG_MAX 0xffffffffffffffffui64
1219 -#define ULONG64_MAX 0xffffffffffffffffui64
1220 -#define DWORD64_MAX 0xffffffffffffffffui64
1221 -#define UINT64_MAX 0xffffffffffffffffui64
1222 +#define LONGLONG_MAX 9223372036854775807ll
1223 +#define LONG64_MAX 9223372036854775807ll
1224 +#define INT64_MAX 9223372036854775807ll
1225 +#define ULONGLONG_MAX 0xffffffffffffffffull
1226 +#define DWORDLONG_MAX 0xffffffffffffffffull
1227 +#define ULONG64_MAX 0xffffffffffffffffull
1228 +#define DWORD64_MAX 0xffffffffffffffffull
1229 +#define UINT64_MAX 0xffffffffffffffffull
1230 #define INT128_MAX 170141183460469231731687303715884105727i128
1231 #define UINT128_MAX 0xffffffffffffffffffffffffffffffffui128
1236 -#define INT_PTR_MAX 9223372036854775807i64
1237 -#define UINT_PTR_MAX 0xffffffffffffffffui64
1238 -#define LONG_PTR_MAX 9223372036854775807i64
1239 -#define ULONG_PTR_MAX 0xffffffffffffffffui64
1240 -#define DWORD_PTR_MAX 0xffffffffffffffffui64
1241 -#define PTRDIFF_T_MAX 9223372036854775807i64
1242 -#define SIZE_T_MAX 0xffffffffffffffffui64
1243 -#define SSIZE_T_MAX 9223372036854775807i64
1244 -#define _SIZE_T_MAX 0xffffffffffffffffui64
1245 +#define INT_PTR_MAX 9223372036854775807ll
1246 +#define UINT_PTR_MAX 0xffffffffffffffffull
1247 +#define LONG_PTR_MAX 9223372036854775807ll
1248 +#define ULONG_PTR_MAX 0xffffffffffffffffull
1249 +#define DWORD_PTR_MAX 0xffffffffffffffffull
1250 +#define PTRDIFF_T_MAX 9223372036854775807ll
1251 +#define SIZE_T_MAX 0xffffffffffffffffull
1252 +#define SSIZE_T_MAX 9223372036854775807ll
1253 +#define _SIZE_T_MAX 0xffffffffffffffffull
1255 #define INT_PTR_MAX 2147483647
1256 #define UINT_PTR_MAX 0xffffffff
1257 @@ -219,39 +219,39 @@
1259 // It is common for -1 to be used as an error value
1261 -#define INT8_ERROR (-1i8)
1262 -#define UINT8_ERROR 0xffui8
1263 +#define INT8_ERROR (((signed char)(-1)))
1264 +#define UINT8_ERROR ((unsigned char)(0xff))
1265 #define BYTE_ERROR 0xff
1266 #define SHORT_ERROR (-1)
1267 -#define INT16_ERROR (-1i16)
1268 +#define INT16_ERROR (((short)(-1)))
1269 #define USHORT_ERROR 0xffff
1270 -#define UINT16_ERROR 0xffffui16
1271 +#define UINT16_ERROR ((unsigned short)(0xffff))
1272 #define WORD_ERROR 0xffff
1273 #define INT_ERROR (-1)
1274 -#define INT32_ERROR (-1i32)
1275 +#define INT32_ERROR (-1L)
1276 #define UINT_ERROR 0xffffffff
1277 -#define UINT32_ERROR 0xffffffffui32
1278 +#define UINT32_ERROR 0xffffffffuL
1279 #define LONG_ERROR (-1L)
1280 #define ULONG_ERROR 0xffffffffUL
1281 #define DWORD_ERROR 0xffffffffUL
1282 -#define LONGLONG_ERROR (-1i64)
1283 -#define LONG64_ERROR (-1i64)
1284 -#define INT64_ERROR (-1i64)
1285 -#define ULONGLONG_ERROR 0xffffffffffffffffui64
1286 -#define DWORDLONG_ERROR 0xffffffffffffffffui64
1287 -#define ULONG64_ERROR 0xffffffffffffffffui64
1288 -#define UINT64_ERROR 0xffffffffffffffffui64
1291 -#define INT_PTR_ERROR (-1i64)
1292 -#define UINT_PTR_ERROR 0xffffffffffffffffui64
1293 -#define LONG_PTR_ERROR (-1i64)
1294 -#define ULONG_PTR_ERROR 0xffffffffffffffffui64
1295 -#define DWORD_PTR_ERROR 0xffffffffffffffffui64
1296 -#define PTRDIFF_T_ERROR (-1i64)
1297 -#define SIZE_T_ERROR 0xffffffffffffffffui64
1298 -#define SSIZE_T_ERROR (-1i64)
1299 -#define _SIZE_T_ERROR 0xffffffffffffffffui64
1300 +#define LONGLONG_ERROR (-1ll)
1301 +#define LONG64_ERROR (-1ll)
1302 +#define INT64_ERROR (-1ll)
1303 +#define ULONGLONG_ERROR 0xffffffffffffffffull
1304 +#define DWORDLONG_ERROR 0xffffffffffffffffull
1305 +#define ULONG64_ERROR 0xffffffffffffffffull
1306 +#define UINT64_ERROR 0xffffffffffffffffull
1309 +#define INT_PTR_ERROR (-1ll)
1310 +#define UINT_PTR_ERROR 0xffffffffffffffffull
1311 +#define LONG_PTR_ERROR (-1ll)
1312 +#define ULONG_PTR_ERROR 0xffffffffffffffffull
1313 +#define DWORD_PTR_ERROR 0xffffffffffffffffull
1314 +#define PTRDIFF_T_ERROR (-1ll)
1315 +#define SIZE_T_ERROR 0xffffffffffffffffull
1316 +#define SSIZE_T_ERROR (-1ll)
1317 +#define _SIZE_T_ERROR 0xffffffffffffffffull
1319 #define INT_PTR_ERROR (-1)
1320 #define UINT_PTR_ERROR 0xffffffff
1321 @@ -7570,13 +7570,13 @@
1323 // a * d must be less than 2^32 or there would be bits set in the high 64-bits
1324 ad = (((ULONGLONG)dw_a) * (ULONGLONG)dw_d);
1325 - if ((ad & 0xffffffff00000000) == 0)
1326 + if ((ad & 0xffffffff00000000ULL) == 0)
1328 dw_b = (DWORD)ullMultiplicand;
1330 // b * c must be less than 2^32 or there would be bits set in the high 64-bits
1331 bc = (((ULONGLONG)dw_b) * (ULONGLONG)dw_c);
1332 - if ((bc & 0xffffffff00000000) == 0)
1333 + if ((bc & 0xffffffff00000000ULL) == 0)
1335 // now sum them all up checking for overflow.
1336 // shifting is safe because we already checked for overflow above
1337 @@ -8015,10 +8015,14 @@
1338 // Macros that are no longer used in this header but which clients may
1339 // depend on being defined here.
1341 -#define LOWORD(_dw) ((WORD)(((DWORD_PTR)(_dw)) & 0xffff))
1342 -#define HIWORD(_dw) ((WORD)((((DWORD_PTR)(_dw)) >> 16) & 0xffff))
1343 +//#define LOWORD(_dw) ((WORD)(((DWORD_PTR)(_dw)) & 0xffff))
1344 +//#define HIWORD(_dw) ((WORD)((((DWORD_PTR)(_dw)) >> 16) & 0xffff))
1345 #define LODWORD(_qw) ((DWORD)(_qw))
1346 #define HIDWORD(_qw) ((DWORD)(((_qw) >> 32) & 0xffffffff))
1352 #endif // _INTSAFE_H_INCLUDED_
1354 --- include/mapinls.h.orig 2005-04-14 17:54:46.000000000 +0900
1355 +++ include/mapinls.h 2006-12-30 20:46:11.125000000 +0900
1357 typedef const void FAR * LPCVOID;
1362 #if !defined (_WIN32)
1364 #define LPOLESTR LPSTR
1366 #define OLESTR(str) L##str
1368 #endif /* !_WIN32 */
1369 -#endif /* LPOLESTR */
1370 +#endif /* OLESTR */
1373 +#ifndef NORM_IGNORECASE
1375 #define NORM_IGNORECASE 0x00000001 /* ignore case */
1376 #define NORM_IGNORENONSPACE 0x00000002 /* ignore diacritics */
1377 #define NORM_IGNORESYMBOLS 0x00000004 /* ignore symbols */
1379 #define NORM_IGNOREKANATYPE 0x00000040 /* ignore kanatype */
1382 +#endif /* NORM_IGNORECASE */
1386 #define lstrcpyA lstrcpy
1387 --- include/mapiwin.h.orig 2003-03-26 16:34:38.000000000 +0900
1388 +++ include/mapiwin.h 2004-12-28 21:41:14.000000000 +0900
1392 #endif /* __MAPIWIN_H__ */
1396 --- include/msdasc.h.orig 2005-04-04 18:50:18.000000000 +0900
1397 +++ include/msdasc.h 2007-01-05 21:47:51.515625000 +0900
1400 +#pragma GCC system_header
1404 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1405 --- include/multimon.h.orig 2005-04-14 17:54:52.000000000 +0900
1406 +++ include/multimon.h 2006-12-31 18:00:37.203125000 +0900
1411 - OSVERSIONINFOA osvi = {0};
1412 + OSVERSIONINFOA osvi;
1413 osvi.dwOSVersionInfoSize = sizeof(osvi);
1414 GetVersionExA((OSVERSIONINFOA*)&osvi);
1415 return (VER_PLATFORM_WIN32_NT == osvi.dwPlatformId);
1416 --- include/ntquery.h.orig 2008-01-18 22:17:30.000000000 +0900
1417 +++ include/ntquery.h 2009-02-16 21:34:39.065125000 +0900
1420 +#pragma GCC system_header
1422 //+---------------------------------------------------------------------------
1424 // Microsoft Windows
1427 #include "stgprop.h"
1432 +#define __inline inline
1434 +#define __inline static __inline__
1437 #if defined(__cplusplus)
1440 @@ -404,6 +415,10 @@
1448 #endif // __NTQUERY_H__
1451 --- include/ocidl.h.orig 2008-03-22 06:10:42.272000000 +1000
1452 +++ include/ocidl.h 2009-02-16 21:34:39.065125000 +0900
1455 +#pragma GCC system_header
1459 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1460 @@ -294,6 +297,14 @@
1461 #include "servprov.h"
1467 +#define __inline inline
1469 +#define __inline static __inline__
1475 @@ -4595,11 +4606,13 @@
1480 typedef /* [v1_enum] */
1482 { DVASPECT_OPAQUE = 16,
1483 DVASPECT_TRANSPARENT = 32
1487 typedef struct tagExtentInfo
1489 @@ -6554,6 +6567,10 @@
1500 --- include/oleauto.h.orig 2008-03-22 06:10:43.225125000 +1000
1501 +++ include/oleauto.h 2009-02-16 21:34:39.065125000 +0900
1503 /* pull in the MIDL generated header */
1509 +#define __inline inline
1511 +#define __inline static __inline__
1515 /*---------------------------------------------------------------------*/
1518 /* ICreateTypeLib */
1519 /*---------------------------------------------------------------------*/
1521 +typedef interface ICreateTypeLib ICreateTypeLib;
1522 +typedef interface ICreateTypeLib2 ICreateTypeLib2;
1523 +typedef interface ICreateTypeInfo ICreateTypeInfo;
1524 typedef ICreateTypeLib * LPCREATETYPELIB;
1526 typedef ICreateTypeInfo * LPCREATETYPEINFO;
1527 @@ -1160,7 +1171,7 @@
1529 // Declare variant access functions.
1531 -#if __STDC__ || defined(NONAMELESSUNION)
1532 +#ifdef NONAMELESSUNION
1533 #define V_UNION(X, Y) ((X)->n1.n2.n3.Y)
1534 #define V_VT(X) ((X)->n1.n2.vt)
1535 #define V_RECORDINFO(X) ((X)->n1.n2.n3.brecVal.pRecInfo)
1536 @@ -1242,5 +1253,9 @@
1537 #include <poppack.h>
1538 #endif // RC_INVOKED
1544 #endif // __OLEAUTO_H__
1546 --- include/oledb.h.orig 2005-04-04 18:50:18.000000000 +0900
1547 +++ include/oledb.h 2007-01-02 17:16:30.656250000 +0900
1550 +#pragma GCC system_header
1554 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1558 #if( OLEDBVER >= 0x0200 )
1559 -#if !defined(_WINBASE_) && !defined(_FILETIME_)
1560 +#if !defined(_WINBASE_H) && !defined(_FILETIME_)
1562 typedef struct _FILETIME {
1563 DWORD dwLowDateTime;
1564 --- include/oleidl.h.orig 2008-03-22 06:10:42.350125000 +1000
1565 +++ include/oleidl.h 2009-02-16 21:34:39.065125000 +0900
1568 +#pragma GCC system_header
1572 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1573 @@ -189,6 +192,14 @@
1574 /* header files for imported files */
1580 +#define __inline inline
1582 +#define __inline static __inline__
1588 @@ -3868,6 +3879,10 @@
1599 --- include/propidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1600 +++ include/propidl.h 2009-02-16 21:34:39.065125000 +0900
1608 +#define __inline inline
1610 +#define __inline static __inline__
1616 @@ -285,11 +293,6 @@
1617 #define tag_inner_PROPVARIANT
1620 -#if !defined(_MSC_EXTENSIONS)
1622 -struct tagPROPVARIANT;
1626 struct tagPROPVARIANT {
1631 VARIANT_BOOL boolVal;
1632 - _VARIANT_BOOL bool;
1633 +// _VARIANT_BOOL bool;
1641 -#endif /* _MSC_EXTENSIONS */
1644 // This is the LPPROPVARIANT definition for marshaling.
1645 typedef struct tag_inner_PROPVARIANT *LPPROPVARIANT;
1646 @@ -1268,6 +1269,10 @@
1657 --- include/propsys.h.orig 2008-03-22 06:10:42.412625000 +1000
1658 +++ include/propsys.h 2009-02-16 21:34:39.065125000 +0900
1659 @@ -228,6 +228,14 @@
1661 #include <propkeydef.h>
1666 +#define __inline inline
1668 +#define __inline static __inline__
1672 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_c_ifspec;
1673 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_s_ifspec;
1674 @@ -3600,6 +3608,10 @@
1685 --- include/qedit.h.orig 2005-04-14 17:54:56.000000000 +0900
1686 +++ include/qedit.h 2007-01-02 22:11:05.140625000 +0900
1689 +#pragma GCC system_header
1693 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1694 @@ -6546,10 +6549,10 @@
1695 #define DEX_IDS_GRAPH_ERROR 1427
1696 #define DEX_IDS_GRID_ERROR 1428
1697 #define DEX_IDS_INTERFACE_ERROR 1429
1698 -EXTERN_GUID(CLSID_VideoEffects1Category, 0xcc7bfb42, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1699 -EXTERN_GUID(CLSID_VideoEffects2Category, 0xcc7bfb43, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1700 -EXTERN_GUID(CLSID_AudioEffects1Category, 0xcc7bfb44, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1701 -EXTERN_GUID(CLSID_AudioEffects2Category, 0xcc7bfb45, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1702 +DEFINE_GUID(CLSID_VideoEffects1Category, 0xcc7bfb42, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1703 +DEFINE_GUID(CLSID_VideoEffects2Category, 0xcc7bfb43, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1704 +DEFINE_GUID(CLSID_AudioEffects1Category, 0xcc7bfb44, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1705 +DEFINE_GUID(CLSID_AudioEffects2Category, 0xcc7bfb45, 0xf175, 0x11d1, 0xa3, 0x92, 0x0, 0xe0, 0x29, 0x1f, 0x39, 0x59);
1708 extern RPC_IF_HANDLE __MIDL_itf_qedit_0001_0097_v0_0_c_ifspec;
1709 --- include/shlobj.h.orig 2008-01-18 22:17:36.000000000 +0900
1710 +++ include/shlobj.h 2009-02-16 21:34:39.065125000 +0900
1713 +#pragma GCC system_header
1715 /*===========================================================================
1717 Copyright (c) Microsoft Corporation. All rights reserved.
1718 @@ -103,6 +106,14 @@
1719 #include <shtypes.h>
1720 #include <shobjidl.h>
1725 +#define __inline inline
1727 +#define __inline static __inline__
1730 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
1733 @@ -250,9 +261,10 @@
1734 #define GIL_FORCENOSHIELD 0x0400 // icon must *not* be "stamped" with the LUA shield
1737 +EXTERN_C const IID IID_IExtractIconA;
1738 #define INTERFACE IExtractIconA
1740 -DECLARE_INTERFACE_IID_(IExtractIconA, IUnknown, "000214eb-0000-0000-c000-000000000046")
1741 +DECLARE_INTERFACE_(IExtractIconA, IUnknown)
1743 // *** IUnknown methods ***
1744 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1745 @@ -278,9 +290,10 @@
1746 typedef IExtractIconA * LPEXTRACTICONA;
1749 +EXTERN_C const IID IID_IExtractIconW;
1750 #define INTERFACE IExtractIconW
1752 -DECLARE_INTERFACE_IID_(IExtractIconW, IUnknown, "000214fa-0000-0000-c000-000000000046")
1753 +DECLARE_INTERFACE_(IExtractIconW, IUnknown)
1755 // *** IUnknown methods ***
1756 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1757 @@ -350,9 +363,10 @@
1758 //===========================================================================
1761 +EXTERN_C const IID IID_IShellIconOverlayIdentifier;
1762 #define INTERFACE IShellIconOverlayIdentifier
1764 -DECLARE_INTERFACE_IID_(IShellIconOverlayIdentifier, IUnknown, "0c6c4200-c589-11d0-999a-00c04fd655e1")
1765 +DECLARE_INTERFACE_(IShellIconOverlayIdentifier, IUnknown)
1767 // *** IUnknown methods ***
1768 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1769 @@ -399,9 +413,10 @@
1770 //===========================================================================
1773 +EXTERN_C const IID IID_IShellIconOverlayManager;
1774 #define INTERFACE IShellIconOverlayManager
1776 -DECLARE_INTERFACE_IID_(IShellIconOverlayManager, IUnknown, "f10b5e34-dd3b-42a7-aa7d-2f4ec54bb09b")
1777 +DECLARE_INTERFACE_(IShellIconOverlayManager, IUnknown)
1779 // *** IUnknown methods ***
1780 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1781 @@ -447,9 +462,10 @@
1782 //===========================================================================
1785 +EXTERN_C const IID IID_IShellIconOverlay;
1786 #define INTERFACE IShellIconOverlay
1788 -DECLARE_INTERFACE_IID_(IShellIconOverlay, IUnknown, "7d688a70-c613-11d0-999b-00c04fd655e1")
1789 +DECLARE_INTERFACE_(IShellIconOverlay, IUnknown)
1791 // *** IUnknown methods ***
1792 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1793 @@ -636,9 +652,10 @@
1794 //===========================================================================
1797 +EXTERN_C const IID IID_IShellExecuteHookA;
1798 #define INTERFACE IShellExecuteHookA
1800 -DECLARE_INTERFACE_IID_(IShellExecuteHookA, IUnknown, "000214f5-0000-0000-c000-000000000046")
1801 +DECLARE_INTERFACE_(IShellExecuteHookA, IUnknown)
1803 // *** IUnknown methods ***
1804 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1805 @@ -650,9 +667,10 @@
1809 +EXTERN_C const IID IID_IShellExecuteHookW;
1810 #define INTERFACE IShellExecuteHookW
1812 -DECLARE_INTERFACE_IID_(IShellExecuteHookW, IUnknown, "000214fb-0000-0000-c000-000000000046")
1813 +DECLARE_INTERFACE_(IShellExecuteHookW, IUnknown)
1815 // *** IUnknown methods ***
1816 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1817 @@ -679,9 +697,10 @@
1818 //===========================================================================
1821 +EXTERN_C const IID IID_IURLSearchHook;
1822 #define INTERFACE IURLSearchHook
1824 -DECLARE_INTERFACE_IID_(IURLSearchHook, IUnknown, "ac60f6a0-0fd9-11d0-99cb-00c04fd64497")
1825 +DECLARE_INTERFACE_(IURLSearchHook, IUnknown)
1827 // *** IUnknown methods ***
1828 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1829 @@ -693,9 +712,10 @@
1833 +EXTERN_C const IID IID_ISearchContext;
1834 #define INTERFACE ISearchContext
1836 -DECLARE_INTERFACE_IID_(ISearchContext, IUnknown, "09F656A2-41AF-480C-88F7-16CC0D164615")
1837 +DECLARE_INTERFACE_(ISearchContext, IUnknown)
1839 // *** IUnknown methods ***
1840 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1841 @@ -709,9 +729,10 @@
1845 +EXTERN_C const IID IID_IURLSearchHook2;
1846 #define INTERFACE IURLSearchHook2
1848 -DECLARE_INTERFACE_IID_(IURLSearchHook2, IURLSearchHook, "5ee44da4-6d32-46e3-86bc-07540dedd0e0")
1849 +DECLARE_INTERFACE_(IURLSearchHook2, IURLSearchHook)
1851 // *** IURLSearchHook2 methods ***
1852 STDMETHOD(TranslateWithSearchContext)(THIS_ __out_ecount(cchBufferSize) LPWSTR lpwszSearchURL, DWORD cchBufferSize, __in_opt ISearchContext * pSearchContext) PURE;
1853 @@ -724,9 +745,10 @@
1854 //===========================================================================
1857 +EXTERN_C const IID IID_INewShortcutHookA;
1858 #define INTERFACE INewShortcutHookA
1860 -DECLARE_INTERFACE_IID_(INewShortcutHookA, IUnknown, "000214e1-0000-0000-c000-000000000046")
1861 +DECLARE_INTERFACE_(INewShortcutHookA, IUnknown)
1863 // *** IUnknown methods ***
1864 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1865 @@ -743,9 +765,10 @@
1869 +EXTERN_C const IID IID_INewShortcutHookW;
1870 #define INTERFACE INewShortcutHookW
1872 -DECLARE_INTERFACE_IID_(INewShortcutHookW, IUnknown, "000214f7-0000-0000-c000-000000000046")
1873 +DECLARE_INTERFACE_(INewShortcutHookW, IUnknown)
1875 // *** IUnknown methods ***
1876 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1877 @@ -800,9 +823,10 @@
1878 //===========================================================================
1881 +EXTERN_C const IID IID_ICopyHookA;
1882 #define INTERFACE ICopyHookA
1884 -DECLARE_INTERFACE_IID_(ICopyHookA, IUnknown, "000214EF-0000-0000-c000-000000000046")
1885 +DECLARE_INTERFACE_(ICopyHookA, IUnknown)
1887 // *** IUnknown methods ***
1888 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1889 @@ -817,9 +841,10 @@
1890 typedef ICopyHookA * LPCOPYHOOKA;
1893 +EXTERN_C const IID IID_ICopyHookW;
1894 #define INTERFACE ICopyHookW
1896 -DECLARE_INTERFACE_IID_(ICopyHookW, IUnknown, "000214FC-0000-0000-c000-000000000046")
1897 +DECLARE_INTERFACE_(ICopyHookW, IUnknown)
1899 // *** IUnknown methods ***
1900 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1901 @@ -853,9 +878,10 @@
1902 //===========================================================================
1905 +EXTERN_C const IID IID_IFileViewerSite;
1906 #define INTERFACE IFileViewerSite
1908 -DECLARE_INTERFACE_IID_(IFileViewerSite, IUnknown, "000214f3-0000-0000-c000-000000000046")
1909 +DECLARE_INTERFACE_(IFileViewerSite, IUnknown)
1911 // *** IUnknown methods ***
1912 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1913 @@ -912,9 +938,10 @@
1914 #define FVSIF_CANVIEWIT 0x40000000 // The viewer can view it.
1917 +EXTERN_C const IID IID_IFileViewerA;
1918 #define INTERFACE IFileViewerA
1920 -DECLARE_INTERFACE_IID(IFileViewerA, "000214f0-0000-0000-c000-000000000046")
1921 +DECLARE_INTERFACE(IFileViewerA)
1923 // *** IUnknown methods ***
1924 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1925 @@ -930,9 +957,10 @@
1926 typedef IFileViewerA * LPFILEVIEWERA;
1929 +EXTERN_C const IID IID_IFileViewerW;
1930 #define INTERFACE IFileViewerW
1932 -DECLARE_INTERFACE_IID(IFileViewerW, "000214f8-0000-0000-c000-000000000046")
1933 +DECLARE_INTERFACE(IFileViewerW)
1935 // *** IUnknown methods ***
1936 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1937 @@ -1484,9 +1512,10 @@
1938 // implement IShellFolder2::GetDetailsOf()/GetDetailsEx() instead
1941 +EXTERN_C const IID IID_IShellDetails;
1942 #define INTERFACE IShellDetails
1944 -DECLARE_INTERFACE_IID_(IShellDetails, IUnknown, "000214EC-0000-0000-c000-000000000046")
1945 +DECLARE_INTERFACE_(IShellDetails, IUnknown)
1947 // *** IUnknown methods ***
1948 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1949 @@ -1513,9 +1542,10 @@
1953 +EXTERN_C const IID IID_IObjMgr;
1954 #define INTERFACE IObjMgr
1956 -DECLARE_INTERFACE_IID_(IObjMgr, IUnknown, "00BB2761-6A77-11D0-A535-00C04FD7D062")
1957 +DECLARE_INTERFACE_(IObjMgr, IUnknown)
1959 // *** IUnknown methods ***
1960 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1961 @@ -1547,9 +1577,10 @@
1965 +EXTERN_C const IID IID_ICurrentWorkingDirectory;
1966 #define INTERFACE ICurrentWorkingDirectory
1968 -DECLARE_INTERFACE_IID_(ICurrentWorkingDirectory, IUnknown, "91956D21-9276-11d1-921A-006097DF5BD4")
1969 +DECLARE_INTERFACE_(ICurrentWorkingDirectory, IUnknown)
1971 // *** IUnknown methods ***
1972 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1973 @@ -1578,9 +1609,10 @@
1977 +EXTERN_C const IID IID_IACList;
1978 #define INTERFACE IACList
1980 -DECLARE_INTERFACE_IID_(IACList, IUnknown, "77A130B0-94FD-11D0-A544-00C04FD7d062")
1981 +DECLARE_INTERFACE_(IACList, IUnknown)
1983 // *** IUnknown methods ***
1984 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
1985 @@ -1597,6 +1629,7 @@
1986 // List COM object that implements this interface.
1989 +EXTERN_C const IID IID_IACList2;
1990 #define INTERFACE IACList2
1992 typedef enum _tagAUTOCOMPLETELISTOPTIONS
1993 @@ -1615,7 +1648,7 @@
1995 } AUTOCOMPLETELISTOPTIONS;
1997 -DECLARE_INTERFACE_IID_(IACList2, IACList, "470141a0-5186-11d2-bbb6-0060977b464c")
1998 +DECLARE_INTERFACE_(IACList2, IACList)
2000 // *** IACList2 specific methods ***
2001 STDMETHOD(SetOptions)(THIS_ DWORD dwFlag) PURE;
2002 @@ -1692,9 +1725,10 @@
2006 +EXTERN_C const IID IID_IProgressDialog;
2007 #define INTERFACE IProgressDialog
2009 -DECLARE_INTERFACE_IID_(IProgressDialog, IUnknown, "EBBC7C04-315E-11d2-B62F-006097DF5BD4")
2010 +DECLARE_INTERFACE_(IProgressDialog, IUnknown)
2012 // *** IUnknown methods ***
2013 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2014 @@ -1751,9 +1785,10 @@
2018 +EXTERN_C const IID IID_IDockingWindowSite;
2019 #define INTERFACE IDockingWindowSite
2021 -DECLARE_INTERFACE_IID_(IDockingWindowSite, IOleWindow, "2a342fc2-7b26-11d0-8ca9-00a0c92dbfe8")
2022 +DECLARE_INTERFACE_(IDockingWindowSite, IOleWindow)
2024 // *** IUnknown methods ***
2025 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2026 @@ -1800,9 +1835,10 @@
2030 +EXTERN_C const IID IID_IDockingWindowFrame;
2031 #define INTERFACE IDockingWindowFrame
2033 -DECLARE_INTERFACE_IID_(IDockingWindowFrame, IOleWindow, "47d2657a-7b27-11d0-8ca9-00a0c92dbfe8")
2034 +DECLARE_INTERFACE_(IDockingWindowFrame, IOleWindow)
2036 // *** IUnknown methods ***
2037 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2038 @@ -1829,9 +1865,10 @@
2042 +EXTERN_C const IID IID_IThumbnailCapture;
2043 #define INTERFACE IThumbnailCapture
2045 -DECLARE_INTERFACE_IID_(IThumbnailCapture, IUnknown, "4ea39266-7211-409f-b622-f63dbd16c533")
2046 +DECLARE_INTERFACE_(IThumbnailCapture, IUnknown)
2048 // *** IThumbnailCapture methods ***
2049 STDMETHOD (CaptureThumbnail) ( THIS_ const SIZE * pMaxSize,
2050 @@ -1856,9 +1893,10 @@
2051 #include <poppack.h> /* Return to byte packing */
2054 +EXTERN_C const IID IID_IEnumShellImageStore;
2055 #define INTERFACE IEnumShellImageStore
2057 -DECLARE_INTERFACE_IID_( IEnumShellImageStore, IUnknown, "6DFD582B-92E3-11D1-98A3-00C04FB687DA" )
2058 +DECLARE_INTERFACE_( IEnumShellImageStore, IUnknown)
2060 STDMETHOD ( QueryInterface ) ( THIS_ REFIID riid, void **ppv ) PURE;
2061 STDMETHOD_( ULONG, AddRef ) ( THIS ) PURE;
2062 @@ -1878,11 +1916,12 @@
2063 #define SHIMSTCAPFLAG_PURGEABLE 0x0002 // does the store require dead items purging externally ?
2066 +EXTERN_C const IID IID_IShellImageStore;
2067 #define INTERFACE IShellImageStore
2069 // this interface is used to manipulate the Image cache. It can potentially be used
2070 // in a free threaded manner in conjunction with the Lock parameter to Open and close
2071 -DECLARE_INTERFACE_IID_( IShellImageStore, IUnknown, "48C8118C-B924-11D1-98D5-00C04FB687DA" )
2072 +DECLARE_INTERFACE_( IShellImageStore, IUnknown)
2074 STDMETHOD ( QueryInterface )( THIS_ REFIID riid, void **ppv ) PURE;
2075 STDMETHOD_( ULONG, AddRef ) ( THIS ) PURE;
2076 @@ -1961,9 +2000,10 @@
2077 #include <poppack.h> /* Return to byte packing */
2080 +EXTERN_C const IID IID_IShellFolderBand;
2081 #define INTERFACE IShellFolderBand
2083 -DECLARE_INTERFACE_IID_(IShellFolderBand, IUnknown, "7FE80CC8-C247-11d0-B93A-00A0C90312E1")
2084 +DECLARE_INTERFACE_(IShellFolderBand, IUnknown)
2086 // *** IUnknown methods ***
2087 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2088 @@ -1984,9 +2024,10 @@
2092 +EXTERN_C const IID IID_IDeskBarClient;
2093 #define INTERFACE IDeskBarClient
2095 -DECLARE_INTERFACE_IID_(IDeskBarClient, IOleWindow, "EB0FE175-1A3A-11D0-89B3-00A0C90A90AC")
2096 +DECLARE_INTERFACE_(IDeskBarClient, IOleWindow)
2098 // *** IUnknown methods ***
2099 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2100 @@ -2238,9 +2279,10 @@
2104 +EXTERN_C const IID IID_IActiveDesktop;
2105 #define INTERFACE IActiveDesktop
2107 -DECLARE_INTERFACE_IID_(IActiveDesktop, IUnknown, "f490eb00-1240-11d1-9888-006097deacf9")
2108 +DECLARE_INTERFACE_(IActiveDesktop, IUnknown)
2111 STDMETHOD (QueryInterface)(THIS_ REFIID riid, __out void **ppv) PURE;
2112 @@ -2288,9 +2330,10 @@
2113 #define SCHEME_CREATE 0x0080
2116 +EXTERN_C const IID IID_IActiveDesktopP;
2117 #define INTERFACE IActiveDesktopP
2119 -DECLARE_INTERFACE_IID_(IActiveDesktopP, IUnknown, "52502EE0-EC80-11D0-89AB-00C04FC2972D")
2120 +DECLARE_INTERFACE_(IActiveDesktopP, IUnknown)
2123 STDMETHOD (QueryInterface)(THIS_ REFIID riid, __out void **ppv) PURE;
2124 @@ -2311,9 +2354,10 @@
2125 #define GADOF_DIRTY 0x00000001
2128 +EXTERN_C const IID IID_IADesktopP2;
2129 #define INTERFACE IADesktopP2
2131 -DECLARE_INTERFACE_IID_(IADesktopP2, IUnknown, "B22754E2-4574-11d1-9888-006097DEACF9")
2132 +DECLARE_INTERFACE_(IADesktopP2, IUnknown)
2135 STDMETHOD (QueryInterface)(THIS_ REFIID riid, __out void **ppv) PURE;
2136 @@ -2375,11 +2419,12 @@
2137 #include <poppack.h> /* Return to byte packing */
2140 +EXTERN_C const IID IID_IColumnProvider;
2141 #define INTERFACE IColumnProvider
2143 // Note: these objects must be threadsafe! GetItemData _will_ be called
2144 // simultaneously from multiple threads.
2145 -DECLARE_INTERFACE_IID_(IColumnProvider, IUnknown, "E8025004-1C42-11d2-BE2C-00A0C9A83DA1")
2146 +DECLARE_INTERFACE_(IColumnProvider, IUnknown)
2149 STDMETHOD (QueryInterface)(THIS_ REFIID riid, __out void **ppv) PURE;
2150 @@ -2698,9 +2743,10 @@
2151 // IShellChangeNotify
2154 +EXTERN_C const IID IID_IShellChangeNotify;
2155 #define INTERFACE IShellChangeNotify
2157 -DECLARE_INTERFACE_IID_(IShellChangeNotify, IUnknown, "D82BE2B1-5764-11D0-A96E-00C04FD705A2")
2158 +DECLARE_INTERFACE_(IShellChangeNotify, IUnknown)
2160 // *** IUnknown methods ***
2161 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2162 @@ -2723,9 +2769,10 @@
2163 //-------------------------------------------------------------------------
2166 +EXTERN_C const IID IID_IQueryInfo;
2167 #define INTERFACE IQueryInfo
2169 -DECLARE_INTERFACE_IID_(IQueryInfo, IUnknown, "00021500-0000-0000-c000-000000000046")
2170 +DECLARE_INTERFACE_(IQueryInfo, IUnknown)
2172 // *** IUnknown methods ***
2173 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2174 @@ -3117,7 +3164,7 @@
2175 SHSTDAPI_(BOOL) ILIsEqual(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2);
2176 SHSTDAPI_(BOOL) ILIsParent(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2, BOOL fImmediate);
2177 SHSTDAPI ILSaveToStream(__in IStream *pstm, __in PCUIDLIST_RELATIVE pidl);
2178 -DECLSPEC_DEPRECATED SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
2179 +//SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
2180 SHSTDAPI ILLoadFromStreamEx(__in IStream *pstm, __deref_out PIDLIST_RELATIVE *pidl);
2182 #if (_WIN32_IE >= 0x0400)
2183 @@ -3188,8 +3235,9 @@
2185 #if (NTDDI_VERSION >= NTDDI_WIN2K && NTDDI_VERSION < NTDDI_VISTA)
2187 +EXTERN_C const IID IID_IDefViewFrame;
2188 #define INTERFACE IDefViewFrame
2189 -DECLARE_INTERFACE_IID_(IDefViewFrame, IUnknown, "710EB7A0-45ED-11D0-924A-0020AFC7AC4D")
2190 +DECLARE_INTERFACE_(IDefViewFrame, IUnknown)
2192 // *** IUnknown methods ***
2193 STDMETHOD(QueryInterface) (THIS_ REFIID riid, __out void **ppv) PURE;
2194 @@ -3522,8 +3570,9 @@
2198 +EXTERN_C const IID IID_IDocViewSite;
2199 #define INTERFACE IDocViewSite
2200 -DECLARE_INTERFACE_IID_(IDocViewSite, IUnknown, "87D605E0-C511-11CF-89A9-00A0C9054129")
2201 +DECLARE_INTERFACE_(IDocViewSite, IUnknown)
2203 // *** IUnknown methods ***
2204 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppv) PURE;
2205 @@ -3588,9 +3637,10 @@
2206 SHSTDAPI_(BOOL) IsUserAnAdmin(void);
2209 +EXTERN_C const IID IID_IInitializeObject;
2210 #define INTERFACE IInitializeObject
2212 -DECLARE_INTERFACE_IID_(IInitializeObject, IUnknown, "4622AD16-FF23-11d0-8D34-00A0C90F2719")
2213 +DECLARE_INTERFACE_(IInitializeObject, IUnknown)
2215 // *** IUnknown methods ***
2216 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2217 @@ -3609,9 +3659,10 @@
2221 +EXTERN_C const IID IID_IBanneredBar;
2222 #define INTERFACE IBanneredBar
2224 -DECLARE_INTERFACE_IID_(IBanneredBar, IUnknown, "596A9A94-013E-11d1-8D34-00A0C90F2719")
2225 +DECLARE_INTERFACE_(IBanneredBar, IUnknown)
2227 // *** IUnknown methods ***
2228 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2229 @@ -3633,9 +3684,10 @@
2233 +EXTERN_C const IID IID_IShellFolderViewCB;
2234 #define INTERFACE IShellFolderViewCB
2236 -DECLARE_INTERFACE_IID_(IShellFolderViewCB, IUnknown, "2047E320-F2A9-11CE-AE65-08002B2E1262")
2237 +DECLARE_INTERFACE_(IShellFolderViewCB, IUnknown)
2239 // *** IUnknown methods ***
2240 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2241 @@ -3774,9 +3826,10 @@
2242 #define SFVS_SELECT_INVERT 0x2 // Inver the selection
2245 +EXTERN_C const IID IID_IShellFolderView;
2246 #define INTERFACE IShellFolderView
2248 -DECLARE_INTERFACE_IID_(IShellFolderView, IUnknown, "37A378C0-F82D-11CE-AE65-08002B2E1262")
2249 +DECLARE_INTERFACE_(IShellFolderView, IUnknown)
2251 // *** IUnknown methods ***
2252 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2253 @@ -4358,8 +4411,9 @@
2255 //--------------------------------------------------------------------------
2257 +EXTERN_C const IID IID_INamedPropertyBag;
2258 #define INTERFACE INamedPropertyBag
2259 -DECLARE_INTERFACE_IID_(INamedPropertyBag, IUnknown, "FB700430-952C-11d1-946F-000000000000")
2260 +DECLARE_INTERFACE_(INamedPropertyBag, IUnknown)
2262 // *** IUnknown methods ***
2263 STDMETHOD(QueryInterface) (THIS_ REFIID riid, void **ppv) PURE;
2264 @@ -4578,5 +4632,9 @@
2272 #endif /* _SHLOBJ_H_ */
2274 --- include/shobjidl.h.orig 2008-01-18 22:17:36.000000000 +0900
2275 +++ include/shobjidl.h 2009-02-16 21:34:39.065125000 +0900
2278 +#pragma GCC system_header
2282 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
2283 @@ -1667,6 +1670,14 @@
2285 #include "propsys.h"
2290 +#define __inline inline
2292 +#define __inline static __inline__
2298 @@ -6384,7 +6395,6 @@
2300 typedef ICommDlgBrowser2 *LPCOMMDLGBROWSER2;
2302 -#endif // NTDDI_WIN2K
2303 #if (_WIN32_IE >= _WIN32_IE_IE70)
2306 @@ -6727,6 +6737,7 @@
2309 #endif // (_WIN32_IE >= _WIN32_IE_IE70)
2310 +#endif // NTDDI_WIN2K
2313 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0026_v0_0_c_ifspec;
2314 @@ -7323,6 +7334,7 @@
2315 #define FCT_MERGE 0x0001
2316 #define FCT_CONFIGABLE 0x0002
2317 #define FCT_ADDTOEND 0x0004
2320 typedef LPARAM LPTBBUTTONSB;
2322 @@ -7331,6 +7343,13 @@
2323 typedef LPTBBUTTON LPTBBUTTONSB;
2329 +#define __inline inline
2331 +#define __inline static __inline__
2334 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_c_ifspec;
2335 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_s_ifspec;
2336 @@ -29000,6 +29019,10 @@
2347 --- include/shtypes.h.orig 2006-12-30 18:12:26.093750000 +0900
2348 +++ include/shtypes.h 2006-12-30 18:24:10.953125000 +0900
2351 +#pragma GCC system_header
2355 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
2358 #endif // defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)
2359 #include <poppack.h>
2360 -typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
2361 +//typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
2363 typedef /* [wire_marshal] */ ITEMIDLIST __unaligned *LPITEMIDLIST;
2365 --- include/specstrings.h.orig 2008-01-18 22:17:38.000000000 +0900
2366 +++ include/specstrings.h 2009-02-16 21:34:39.065125000 +0900
2373 +#define __RPC__deref_in_ecount_full_opt(x)
2374 +#define __RPC__deref_inout_opt
2375 +#define __RPC__deref_opt_inout_opt
2376 +#define __RPC__deref_opt_inout_ecount_full_opt(x)
2377 +#define __RPC__deref_out
2378 +#define __RPC__deref_out_ecount_full_opt(x)
2379 +#define __RPC__deref_out_opt
2380 +#define __RPC__deref_out_opt_string
2382 +#define __RPC__in_ecount_full(x)
2383 +#define __RPC__in_ecount_full_opt(x)
2384 +#define __RPC__in_opt
2385 +#define __RPC__inout
2386 +#define __RPC__inout_ecount_full(x)
2387 +#define __RPC__inout_ecount_full_opt(x)
2388 +#define __RPC__inout_opt
2390 +#define __RPC__out_ecount_full(x)
2391 +#define __RPC__out_ecount_full_string(x)
2392 +#define __RPC__out_ecount_part(x,y)
2393 +#define __RPC_unique_pointer
2395 +#define __inner_checkReturn
2396 +#define __inner_control_entrypoint(x)
2397 +#define __control_entrypoint(x)
2398 +#define __data_entrypoint(x)
2400 +#define __deref_inout
2401 +#define __deref_inout_ecount_z(x)
2402 +#define __deref_inout_opt
2403 +#define __deref_opt_inout_bcount_part_opt(x,y)
2404 +#define __deref_opt_inout_opt
2405 +#define __deref_opt_out
2406 +#define __deref_opt_out_bcount(x)
2407 +#define __deref_opt_out_ecount(x)
2408 +#define __deref_opt_out_opt
2409 +#define __deref_out
2410 +#define __deref_out_bcount(x)
2411 +#define __deref_out_bcount_opt(x)
2412 +#define __deref_out_ecount(x)
2413 +#define __deref_out_ecount_opt(x)
2414 +#define __deref_out_ecount_part(x,y)
2415 +#define __deref_out_opt
2416 +#define __deref_out_z
2417 +#define __deref_out_z_opt
2418 +#define __format_string
2420 +#define __in_bcount(x)
2421 +#define __in_bcount_opt(x)
2422 +#define __in_ecount(x)
2423 +#define __in_ecount_opt(x)
2428 +#define __inout_bcount(x)
2429 +#define __inout_bcount_full(x)
2430 +#define __inout_bcount_opt(x)
2431 +#define __inout_bcount_part(x,y)
2432 +#define __inout_bcount_part_opt(x,y)
2433 +#define __inout_ecount(x)
2434 +#define __inout_ecount_opt(x)
2435 +#define __inout_opt
2436 +#define __nullnullterminated
2437 +#define __nullterminated
2439 +#define __out_bcount(x)
2440 +#define __out_bcount_full(x)
2441 +#define __out_bcount_opt(x)
2442 +#define __out_bcount_part(x,y)
2443 +#define __out_bcount_part_opt(x,y)
2444 +#define __out_ecount(x)
2445 +#define __out_ecount_full(x)
2446 +#define __out_ecount_opt(x)
2447 +#define __out_ecount_part(x,y)
2448 +#define __out_ecount_part_opt(x,y)
2450 +#define __out_xcount(x)
2451 +#define __out_xcount_opt(x)
2453 +#define __success(x)
2454 +#define __typefix(x)
2458 +#define __exceptthat
2460 +#define __maybenull
2461 +#define __byte_writableTo(x)
2464 +#define __elem_writableTo(x)
2466 +#define __forceinline inline
2467 +#define __inline inline
2469 +#define __forceinline static __inline__
2470 +#define __inline static __inline__
2473 #ifndef __SAL_H_FULL_VER
2474 #define __SAL_H_FULL_VER 140050727
2475 --- include/sspi.h.orig 2008-03-22 06:10:42.631375000 +1000
2476 +++ include/sspi.h 2009-02-16 21:34:39.065125000 +0900
2484 +#define __inline inline
2486 +#define __inline static __inline__
2492 @@ -2154,8 +2162,7 @@
2496 -#ifndef _AUTH_IDENTITY_DEFINED
2497 -#define _AUTH_IDENTITY_DEFINED
2498 +#ifndef SEC_WINNT_AUTH_IDENTITY_ANSI
2501 // This was not defined in NTIFS.h for windows 2000 however
2502 @@ -2326,6 +2333,10 @@
2511 #endif // __SSPI_H__
2513 --- include/strmif.h.orig 2008-01-18 22:17:38.000000000 +0900
2514 +++ include/strmif.h 2009-02-16 21:34:39.065125000 +0900
2517 +#pragma GCC system_header
2521 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
2522 @@ -888,6 +891,14 @@
2529 +#define __inline inline
2531 +#define __inline static __inline__
2537 @@ -16250,7 +16261,7 @@
2538 #define _IAMFilterGraphCallback_
2539 // Note: Because this interface was not defined as a proper interface it is
2540 // supported under C++ only. Methods aren't stdcall.
2541 -EXTERN_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
2542 +DEFINE_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
2543 interface IAMFilterGraphCallback : public IUnknown
2545 // S_OK means rendering complete, S_FALSE means retry now.
2546 @@ -21934,7 +21945,7 @@
2547 typedef struct tagVMRGUID
2554 typedef struct tagVMRMONITORINFO
2555 @@ -23341,6 +23352,10 @@
2566 --- include/strsafe.h.orig 2008-01-18 22:17:38.000000000 +0900
2567 +++ include/strsafe.h 2009-02-16 21:34:39.065125000 +0900
2569 #if (_MSC_VER > 1000)
2573 +#pragma GCC system_header
2576 #include <stdio.h> // for _vsnprintf, _vsnwprintf, getc, getwc
2577 #include <string.h> // for memset
2578 #include <stdarg.h> // for va_start, etc.
2579 #include <specstrings.h> // for __in, etc.
2584 +#define __inline inline
2586 +#define __inline static __inline__
2590 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && (_MSC_VER >= 1300)
2592 @@ -9254,7 +9265,7 @@
2593 wchar_t ch = getwc(stdin);
2594 // ASSERT(sizeof(wchar_t) == sizeof(wint_t));
2599 if (cchNewDestLength == 0)
2601 @@ -9763,5 +9774,9 @@
2603 #pragma warning(pop)
2609 #endif // _STRSAFE_H_INCLUDED_
2611 --- include/structuredquery.h.orig 2008-03-22 06:10:42.756375000 +1000
2612 +++ include/structuredquery.h 2009-02-16 21:34:39.065125000 +0900
2613 @@ -233,6 +233,14 @@
2615 #include "propidl.h"
2620 +#define __inline inline
2622 +#define __inline static __inline__
2628 @@ -2472,6 +2480,10 @@
2639 --- include/urlmon.h.orig 2008-03-22 06:10:42.818875000 +1000
2640 +++ include/urlmon.h 2009-02-16 21:34:39.065125000 +0900
2643 +#pragma GCC system_header
2647 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
2648 @@ -330,6 +333,14 @@
2649 #include "servprov.h"
2655 +#define __inline inline
2657 +#define __inline static __inline__
2663 @@ -8880,6 +8891,10 @@
2674 --- include/wincrypt.h.orig 2008-01-18 22:17:42.000000000 +0900
2675 +++ include/wincrypt.h 2009-02-16 21:34:39.065125000 +0900
2678 #include <specstrings.h> /* for SAL annotations */
2683 +#define __inline inline
2685 +#define __inline static __inline__
2688 #if defined (_MSC_VER)
2690 #if ( _MSC_VER >= 800 )
2691 @@ -1927,6 +1935,14 @@
2698 +#define __inline inline
2700 +#define __inline static __inline__
2703 // This type is used when the API can take either the CAPI1 HCRYPTPROV or
2704 // the CNG NCRYPT_KEY_HANDLE. Where appropriate, the HCRYPTPROV will be
2705 // converted to a NCRYPT_KEY_HANDLE via the CNG NCryptTranslateHandle().
2706 @@ -17113,8 +17129,8 @@
2708 __in_opt PCRYPT_KEY_PROV_INFO pKeyProvInfo,
2709 __in_opt PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
2710 - __in_opt PSYSTEMTIME pStartTime,
2711 - __in_opt PSYSTEMTIME pEndTime,
2712 + __in_opt LPSYSTEMTIME pStartTime,
2713 + __in_opt LPSYSTEMTIME pEndTime,
2714 __in_opt PCERT_EXTENSIONS pExtensions
2717 @@ -19174,6 +19190,10 @@
2725 #endif // __WINCRYPT_H__
2728 --- include/winerror.h.orig 2008-03-20 13:39:15.127375000 +0900
2729 +++ include/winerror.h 2008-03-20 14:33:29.097125000 +0900
2730 @@ -23065,7 +23065,7 @@
2732 #if !defined(_HRESULT_DEFINED) && !defined(__midl)
2733 #define _HRESULT_DEFINED
2734 -typedef __success(return >= 0) long HRESULT;
2735 +typedef long HRESULT;
2739 --- include/wingdi.h.orig 2008-03-22 06:10:42.897000000 +1000
2740 +++ include/wingdi.h 2009-02-16 21:34:39.065125000 +0900
2748 +#define __inline inline
2750 +#define __inline static __inline__
2755 @@ -1169,11 +1176,10 @@
2756 typedef struct tagLOGPALETTE {
2759 - __field_ecount_opt(palNumEntries) PALETTEENTRY palPalEntry[1];
2760 + __field_ecount_opt(palNumEntries) PALETTEENTRY palPalEntry[1];
2761 } LOGPALETTE, *PLOGPALETTE, NEAR *NPLOGPALETTE, FAR *LPLOGPALETTE;
2762 #endif // !_LOGPALETTE_DEFINED
2766 #define LF_FACESIZE 32
2768 @@ -1901,7 +1907,7 @@
2769 /* size of a form name string */
2770 #define CCHFORMNAME 32
2772 -#if (_WIN32_WINNT >= ((OSVER(NTDDI_WINXPSP2)) >> 16))
2773 +#if (_WIN32_WINNT >= ((NTDDI_WINXPSP2 & 0xFFFF0000) >> 16))
2774 typedef struct _devicemodeA {
2775 BYTE dmDeviceName[CCHDEVICENAME];
2777 @@ -2900,7 +2906,7 @@
2778 typedef FARPROC LINEDDAPROC;
2782 +WINGDIAPI int WINAPI FillRect(HDC,LPCRECT,HBRUSH);
2784 WINGDIAPI int WINAPI AddFontResourceA(__in LPCSTR);
2785 WINGDIAPI int WINAPI AddFontResourceW(__in LPCWSTR);
2786 @@ -3254,7 +3260,7 @@
2787 WINGDIAPI int WINAPI GetDeviceCaps( __in_opt HDC hdc, __in int index);
2788 WINGDIAPI int WINAPI GetDIBits( __in HDC hdc, __in HBITMAP hbm, __in UINT start, __in UINT cLines, __out_opt LPVOID lpvBits, __inout_xcount(sizeof(BITMAPINFOHEADER)) LPBITMAPINFO lpbmi, __in UINT usage); // SAL actual size of lpbmi is computed from structure elements
2790 -__success(return != GDI_ERROR)
2791 +//__success(return != GDI_ERROR)
2792 WINGDIAPI DWORD WINAPI GetFontData ( __in HDC hdc,
2794 __in DWORD dwOffset,
2795 @@ -4346,6 +4352,7 @@
2796 WINGDIAPI BOOL WINAPI ColorCorrectPalette( __in HDC hdc, __in HPALETTE hPal, __in DWORD deFirst, __in DWORD num);
2802 // Enhanced metafile constants.
2803 @@ -5424,6 +5431,10 @@
2811 #endif /* _WINGDI_ */
2814 --- include/winsock2.h.orig 2008-03-22 06:10:42.912625000 +1000
2815 +++ include/winsock2.h 2009-02-16 21:34:39.065125000 +0900
2818 +#pragma GCC system_header
2822 // $DealPointID: 118736
2824 * conditions for redistribution.
2827 -#ifndef _WINSOCK2API_
2828 -#define _WINSOCK2API_
2829 -#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
2830 +#ifndef _WINSOCK2_H
2831 +#define _WINSOCK2_H
2832 +#define _WINSOCK_H /* to prevent later inclusion of winsock.h */
2837 #include <windows.h>
2838 #endif /* _INC_WINDOWS */
2843 +#define __inline inline
2845 +#define __inline static __inline__
2849 * Define the current Winsock version. To build an earlier Winsock version
2850 * application redefine this value prior to including Winsock2.h.
2851 @@ -1107,10 +1118,8 @@
2852 * registration (RNR) API
2855 -#ifndef _tagBLOB_DEFINED
2856 -#define _tagBLOB_DEFINED
2857 -#define _BLOB_DEFINED
2858 -#define _LPBLOB_DEFINED
2859 +#ifndef __BLOB_T_DEFINED
2860 +#define __BLOB_T_DEFINED
2861 typedef struct _BLOB {
2864 @@ -3920,5 +3929,9 @@
2865 #endif // IPV6STRICT
2866 #endif //(_WIN32_WINNT >= 0x0501)
2868 -#endif /* _WINSOCK2API_ */
2873 +#endif /* _WINSOCK2_H */
2876 --- include/winuser.h.orig 2008-07-19 14:56:51.278750000 +0900
2877 +++ include/winuser.h 2009-02-16 21:34:39.065125000 +0900
2885 +#define __inline inline
2887 +#define __inline static __inline__
2889 +DECLARE_HANDLE(HHOOK);
2890 +typedef CONST GUID *LPCGUID;
2895 #define WINVER 0x0500 /* version 5.0 */
2896 #endif /* !WINVER */
2898 -#include <stdarg.h>
2899 +#include <../include/stdarg.h>
2904 #pragma warning(disable:4995)
2907 +WINUSERAPI UINT WINAPI WinExec(LPCSTR,UINT);
2912 @@ -10717,7 +10728,7 @@
2913 #define CDS_RESET 0x40000000
2914 #define CDS_NORESET 0x10000000
2917 +//#include <tvout.h>
2919 /* Return values for ChangeDisplaySettings */
2920 #define DISP_CHANGE_SUCCESSFUL 0
2921 @@ -12571,16 +12582,20 @@
2925 -#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2926 -#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2927 -#include "winuser.inl"
2928 -#endif /* ISOLATION_AWARE_ENABLED */
2930 +//#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2931 +//#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2932 +//#include "winuser.inl"
2933 +//#endif /* ISOLATION_AWARE_ENABLED */
2938 #endif /* __cplusplus */
2944 #endif /* !_WINUSER_ */
2947 --- include/ws2ipdef.h.orig 2008-01-18 22:17:44.000000000 +0900
2948 +++ include/ws2ipdef.h 2009-02-16 21:34:39.065125000 +0900
2951 +#pragma GCC system_header
2955 Copyright (c) Microsoft Corporation. All rights reserved.
2957 #define WS2IPDEF_ASSERT(exp) ((VOID) 0)
2961 -#define WS2TCPIP_INLINE __inline
2963 +#define WS2TCPIP_INLINE inline
2965 -#define WS2TCPIP_INLINE extern inline /* GNU style */
2966 +#define WS2TCPIP_INLINE static __inline__
2969 #include <in6addr.h>
2971 ULONG ipv6mr_interface; // Interface index.
2972 } IPV6_MREQ, *PIPV6_MREQ;
2974 -#if (NTDDI_VERSION >= NTDDI_WINXP)
2977 // Structure for GROUP_REQ used by protocol independent source filters
2978 // (MCAST_JOIN_GROUP and MCAST_LEAVE_GROUP).
2980 ULONG ipi_ifindex; // Send/receive interface index.
2981 } IN_PKTINFO, *PIN_PKTINFO;
2983 +#define C_ASSERT(x)
2985 C_ASSERT(sizeof(IN_PKTINFO) == 8);
2988 --- include/ws2tcpip.h.orig 2008-01-18 22:17:44.000000000 +0900
2989 +++ include/ws2tcpip.h 2009-02-16 21:34:39.065125000 +0900
2992 #ifndef _WS2TCPIP_H_
2993 #define _WS2TCPIP_H_
2995 +#pragma GCC system_header
3001 #include <ws2ipdef.h>
3007 +#define __inline inline
3009 +#define __inline static __inline__
3012 /* Option to use with [gs]etsockopt at the IPPROTO_UDP level */
3014 #define UDP_NOCHECKSUM 1
3015 #define UDP_CHECKSUM_COVERAGE 20 /* Set/get UDP-Lite checksum coverage */
3018 -#define WS2TCPIP_INLINE __inline
3020 +#define WS2TCPIP_INLINE inline
3022 -#define WS2TCPIP_INLINE extern inline /* GNU style */
3023 +#define WS2TCPIP_INLINE static __inline__
3026 /* Error codes from getaddrinfo() */
3031 -#if (NTDDI_VERSION >= NTDDI_WINXP)
3036 @@ -1056,5 +1067,9 @@
3037 #include <wspiapi.h>
3044 #endif /* _WS2TCPIP_H_ */
3046 --- include/wspiapi.h.orig 2005-04-14 17:55:04.000000000 +0900
3047 +++ include/wspiapi.h 2009-02-16 21:34:39.065125000 +0900
3053 +#pragma GCC system_header
3062 +#define _inline inline
3063 +#define __inline inline
3065 +#define _inline static __inline__
3066 +#define __inline static __inline__
3069 ////////////////////////////////////////////////////////////
3070 @@ -1052,6 +1060,8 @@
3071 (*pfFreeAddrInfo)(ai);
3079 --- include/d3dtypes.h.orig 2004-09-27 12:34:16.000000000 +0900
3080 +++ include/d3dtypes.h 2007-11-30 21:42:09.558750000 +0900
3083 +#pragma GCC system_header
3085 /*==========================================================================;
3087 * Copyright (C) Microsoft Corporation. All Rights Reserved.
3088 --- include/d3dx9math.h.orig 2005-07-22 17:00:18.000000000 +0900
3089 +++ include/d3dx9math.h 2007-11-30 21:41:52.230625000 +0900
3092 +#pragma GCC system_header
3094 //////////////////////////////////////////////////////////////////////////////
3096 // Copyright (C) Microsoft Corporation. All Rights Reserved.
3097 --- include/d3dx9math.inl.orig 2005-03-18 17:26:56.000000000 +0900
3098 +++ include/d3dx9math.inl 2007-11-30 21:41:38.496250000 +0900
3101 +#pragma GCC system_header
3103 //////////////////////////////////////////////////////////////////////////////
3105 // Copyright (C) Microsoft Corporation. All Rights Reserved.
3106 --- include/d3dx9core.h.orig 2006-03-31 12:16:02.000000000 +0900
3107 +++ include/d3dx9core.h 2007-11-30 21:41:13.199375000 +0900
3110 +#pragma GCC system_header
3112 ///////////////////////////////////////////////////////////////////////////
3114 // Copyright (C) Microsoft Corporation. All Rights Reserved.
3115 --- include/msi.h.orig 2008-01-18 22:17:28.000000000 +0900
3116 +++ include/msi.h 2009-02-16 21:34:39.065125000 +0900
3118 #endif // _MSI_NO_CRYPTO
3119 #endif //(_WIN32_MSI >= 150)
3124 +#define __inline inline
3126 +#define __inline static __inline__
3129 // --------------------------------------------------------------------------
3130 // Installer generic handle definitions
3131 // --------------------------------------------------------------------------
3132 @@ -2248,5 +2256,9 @@
3142 --- include/msiquery.h.orig 2008-01-18 22:17:28.000000000 +0900
3143 +++ include/msiquery.h 2009-02-16 21:34:39.065125000 +0900
3145 #define _MSIQUERY_H_
3146 #include "msi.h" // INSTALLSTATE
3151 +#define __inline inline
3153 +#define __inline static __inline__
3156 #define MSI_NULL_INTEGER 0x80000000 // integer value reserved for null
3158 // MsiOpenDatabase persist predefine values, otherwise output database path is used
3159 @@ -1026,5 +1034,9 @@
3167 #endif // _MSIQUERY_H_
3169 --- include/olectl.h.orig 2008-03-22 06:10:42.000000000 +1000
3170 +++ include/olectl.h 2009-02-16 21:34:39.065125000 +0900
3178 +#define __inline inline
3180 +#define __inline static __inline__
3184 #define WINOLECTLAPI STDAPI
3185 #define WINOLECTLAPI_(type) STDAPI_(type)
3188 #endif // defined(__MKTYPLIB__) || defined(__midl)
3194 #endif // _OLECTL_H_
3196 --- include/propkeydef.h.orig 2008-01-18 22:17:32.000000000 +0900
3197 +++ include/propkeydef.h 2008-03-22 21:56:32.734375000 +1000
3199 #define PID_FIRST_USABLE 2
3202 +#ifndef __MIDL_CONST
3203 +#define __MIDL_CONST const
3206 #ifndef REFPROPERTYKEY
3208 #define REFPROPERTYKEY const PROPERTYKEY &
3209 --- icnlude/dxtrans.h.orig 2004-09-28 00:18:32.000000000 +0900
3210 +++ include/dxtrans.h 2007-01-02 22:08:41.640625000 +0900
3213 +#pragma GCC system_header
3216 #pragma warning( disable: 4049 ) /* more than 64k source lines */