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/excpt.h.orig 2009-01-11 04:32:43.000000000 +0900
16 +++ include/excpt.h 2009-08-21 09:21:56.000000000 +0900
19 /* All the headers include this file. */
28 * NOTE: The constants structs and typedefs below should be defined in the
30 * The type of function that is expected as an exception handler to be
31 * installed with __try1.
33 -typedef EXCEPTION_DISPOSITION (*PEXCEPTION_HANDLER)
34 +typedef EXCEPTION_DISPOSITION (* PEXCEPTION_HANDLER)
35 (struct _EXCEPTION_RECORD*, void*, struct _CONTEXT*, void*);
39 __asm__ ("movl (%%esp),%%eax;movl %%eax,%%fs:0;addl $8,%%esp;" \
46 + IN PVOID TargetFrame OPTIONAL,
47 + IN PVOID TargetIp OPTIONAL,
48 + IN PEXCEPTION_RECORD ExceptionRecord OPTIONAL,
49 + IN PVOID ReturnValue
59 + typedef int (*PF)(void *, LPEXCEPTION_POINTERS);
60 + typedef void (*PH)(void *, LPEXCEPTION_POINTERS);
61 + typedef void (*PN)(void *);
62 + void Set(jmp_buf jb, void *pdata=NULL, PF pfilter=NULL, PH phandlerbody=NULL, PN pfinal=NULL)
64 + __builtin_memcpy(m_jmpbuf, jb, sizeof(jmp_buf));
66 + switch (reinterpret_cast<int>(pfilter))
71 + case EXCEPTION_CONTINUE_EXECUTION:
72 + m_filter=DefaultFilterContinueExecution;
74 + case EXCEPTION_EXECUTE_HANDLER:
75 + m_filter=DefaultFilterExecuteHandler;
77 + case EXCEPTION_CONTINUE_SEARCH:
78 + m_filter=DefaultFilterContinueSearch;
82 + m_handlerbody=phandlerbody;
84 + m_handlerbody=DefaultHandler;
88 + m_final=DefaultFinal;
89 + m_ER.pHandlerClass = this;
91 + asm("movl %%fs:0, %%eax\n\t"
92 + "movl %%eax, %0": : "m" (m_ER.prev): "%eax" );
93 + asm("movl %0, %%eax\n\t"
94 + "movl %%eax, %%fs:0": : "r" (&m_ER): "%eax" );
99 + asm("movl %0, %%eax \n\t"
100 + "movl %%eax, %%fs:0"
101 + : : "m" (m_ER.prev): "%eax");
104 + __SEHandler(const __SEHandler&);
105 + __SEHandler& operator=(const __SEHandler&);
108 + PEXCEPTION_HANDLER hp;
109 + __SEHandler *pHandlerClass;
111 + static EXCEPTION_DISPOSITION handler(
112 + struct _EXCEPTION_RECORD *pExceptionRecord,
113 + void * EstablisherFrame,
114 + struct _CONTEXT *ContextRecord,
115 + void * /*DispatcherContext*/)
117 + __SEHandler* pThis = reinterpret_cast< _ER * >(EstablisherFrame)->pHandlerClass;
118 + if ( pExceptionRecord->ExceptionFlags & EH_UNWINDING )
120 + pThis->m_final(pThis->m_pData);
121 + return ExceptionContinueSearch;
123 + EXCEPTION_POINTERS ep={pExceptionRecord, ContextRecord};
124 + switch ( pThis->m_filter(pThis->m_pData, &ep) )
126 + case EXCEPTION_EXECUTE_HANDLER:
127 + RtlUnwind(EstablisherFrame, &&__set_label, pExceptionRecord, 0);
129 + pThis->m_handlerbody(pThis->m_pData, &ep);
130 + ContextRecord->Ebp = pThis->m_jmpbuf[0];
131 + ContextRecord->Eip = pThis->m_jmpbuf[1];
132 + ContextRecord->Esp = pThis->m_jmpbuf[2];
133 + return ExceptionContinueExecution;
134 + case EXCEPTION_CONTINUE_SEARCH:
135 + return ExceptionContinueSearch;
136 + case EXCEPTION_CONTINUE_EXECUTION:
137 + return ExceptionContinueExecution;
139 + return ExceptionContinueExecution;
141 + static int DefaultFilterContinueSearch(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_CONTINUE_SEARCH; }
142 + static int DefaultFilterContinueExecution(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_CONTINUE_EXECUTION; }
143 + static int DefaultFilterExecuteHandler(void *, LPEXCEPTION_POINTERS) { return EXCEPTION_EXECUTE_HANDLER; }
144 + static void DefaultHandler(void *, LPEXCEPTION_POINTERS) {}
145 + static void DefaultFinal(void *) {}
146 + typedef int (*handler_p)(
147 + struct _EXCEPTION_RECORD *ExceptionRecord,
148 + void * EstablisherFrame,
149 + struct _CONTEXT *ContextRecord,
150 + void * DispatcherContext);
160 #endif /* Not RC_INVOKED */
161 --- include/tchar.h.orig 2009-01-11 04:32:46.000000000 +0900
162 +++ include/tchar.h 2009-08-21 09:21:56.000000000 +0900
164 #define _ttelldir _wtelldir
165 #define _tseekdir _wseekdir
167 +#define _ttempnam _wtempnam
170 #else /* Not _UNICODE */
174 #define _ttelldir telldir
175 #define _tseekdir seekdir
177 +#define _ttempnam _tempnam
179 #endif /* Not _UNICODE */
182 --- include/amvideo.h.orig 2008-12-06 11:31:53.000000000 +0900
183 +++ include/amvideo.h 2009-08-21 09:21:56.000000000 +0900
185 BITMAPINFOHEADER bmiHeader;
187 typedef struct tagVIDEOINFO {
191 - DWORD dwBitErrorRate,
195 + DWORD dwBitErrorRate;
196 REFERENCE_TIME AvgTimePerFrame;
197 BITMAPINFOHEADER bmiHeader;
199 --- include/basetyps.h.orig 2008-12-06 11:31:53.000000000 +0900
200 +++ include/basetyps.h 2009-08-21 09:21:56.000000000 +0900
202 CONST_VTABLE struct i##Vtbl
203 # define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
205 +# define DECLARE_INTERFACE_IID(i,s) EXTERN_C const IID IID_##i; DECLARE_INTERFACE(i)
206 +# define DECLARE_INTERFACE_IID_(i,b,s) EXTERN_C const IID IID_##i; DECLARE_INTERFACE_(i,b)
207 # define BEGIN_INTERFACE
208 # define END_INTERFACE
210 --- include/oaidl.h.orig 2008-12-06 11:32:03.000000000 +0900
211 +++ include/oaidl.h 2009-08-21 09:21:56.000000000 +0900
214 typedef _COM_interface ITypeLib *LPTYPELIB;
215 typedef _COM_interface ITypeLib2 *LPTYPELIB2;
216 +typedef _COM_interface ICreateTypeInfo ICreateTypeInfo;
217 typedef _COM_interface ICreateTypeInfo *LPCREATETYPEINFO;
218 typedef _COM_interface ICreateTypeInfo2 *LPCREATETYPEINFO2;
219 +typedef _COM_interface ICreateTypeLib ICreateTypeLib;
220 +typedef _COM_interface ICreateTypeLib2 ICreateTypeLib2;
221 typedef _COM_interface ICreateTypeLib *LPCREATETYPELIB;
222 typedef _COM_interface ICreateTypeLib2 *LPCREATETYPELIB2;
223 typedef _COM_interface ITypeComp *LPTYPECOMP;
225 typedef _COM_interface ICreateErrorInfo *LPCREATEERRORINFO;
226 typedef _COM_interface ISupportErrorInfo *LPSUPPORTERRORINFO;
227 typedef _COM_interface IRecordInfo *LPRECORDINFO;
228 +typedef _COM_interface IErrorLog *LPERRORLOG;
229 +typedef _COM_interface IPropertyBag *LPPROPERTYBAG;
231 extern const IID IID_ITypeLib;
232 extern const IID IID_ITypeLib2;
237 +EXTERN_C const IID IID_IErrorLog;
238 +#define INTERFACE IErrorLog
239 +DECLARE_INTERFACE_(IErrorLog,IUnknown)
241 + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
242 + STDMETHOD_(ULONG,AddRef)(THIS) PURE;
243 + STDMETHOD_(ULONG,Release)(THIS) PURE;
244 + STDMETHOD(AddError)(THIS_ LPCOLESTR,LPEXCEPINFO) PURE;
248 +EXTERN_C const IID IID_IPropertyBag;
249 +#define INTERFACE IPropertyBag
250 +DECLARE_INTERFACE_(IPropertyBag,IUnknown)
252 + STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
253 + STDMETHOD_(ULONG,AddRef)(THIS) PURE;
254 + STDMETHOD_(ULONG,Release)(THIS) PURE;
255 + STDMETHOD(Read)(THIS_ LPCOLESTR,LPVARIANT,LPERRORLOG) PURE;
256 + STDMETHOD(Write)(THIS_ LPCOLESTR,LPVARIANT) PURE;
263 --- include/objidl.h.orig 2008-12-06 11:32:04.000000000 +0900
264 +++ include/objidl.h 2009-08-21 09:21:56.000000000 +0900
266 +#include <windows.h>
273 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
274 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
275 STDMETHOD_(ULONG,Release)(THIS) PURE;
276 - STDMETHOD(AddConnection)(THIS_ DWORD,DWORD) PURE;
277 - STDMETHOD(ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
278 + STDMETHOD_(DWORD,AddConnection)(THIS_ DWORD,DWORD) PURE;
279 + STDMETHOD_(DWORD,ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
283 --- include/specstrings.h.orig 2008-12-06 11:32:09.000000000 +0900
284 +++ include/specstrings.h 2009-08-21 09:21:56.000000000 +0900
286 /* __in and __out currently conflict with libstdc++, use with caution */
289 +#define __RPC__deref_inout_opt
290 +#define __RPC__deref_opt_inout_ecount_full_opt(size)
291 +#define __RPC__deref_opt_inout_opt
292 +#define __RPC__deref_out
293 +#define __RPC__deref_out_ecount_full_opt(size)
294 +#define __RPC__deref_out_opt
295 +#define __RPC__deref_out_opt_string
297 +#define __RPC__in_ecount_full(size)
298 +#define __RPC__in_ecount_full_opt(size)
299 +#define __RPC__in_opt
300 +#define __RPC__inout
301 +#define __RPC__inout_ecount_full(size)
302 +#define __RPC__inout_ecount_full_opt(size)
303 +#define __RPC__inout_opt
305 +#define __RPC__out_ecount_full(size)
306 +#define __RPC__out_ecount_full_string(size)
307 +#define __RPC__out_ecount_part(size,init)
308 +#define __RPC_unique_pointer
309 #define __bcount(size)
310 #define __bcount_opt(size)
312 +#define __checkReturn
314 #define __deref_bcount(size)
315 #define __deref_bcount_opt(size)
316 #define __deref_ecount(size)
318 #define __deref_inout_ecount_opt(size)
319 #define __deref_inout_ecount_part(size,length)
320 #define __deref_inout_ecount_part_opt(size,length)
321 +#define __deref_inout_ecount_z(size)
322 #define __deref_inout_opt
323 #define __deref_opt_bcount(size)
324 #define __deref_opt_bcount_opt(size)
326 #define __deref_out_ecount_part(size,length)
327 #define __deref_out_ecount_part_opt(size,length)
328 #define __deref_out_opt
329 +#define __deref_out_z
330 +#define __deref_out_z_opt
331 #define __ecount(size)
332 #define __ecount_opt(size)
333 +#define __field_bcount(size)
334 +#define __field_ecount(size)
335 +#define __field_ecount_opt(size)
336 +#define __format_string
339 #define __in_bcount(size)
340 #define __in_bcount_opt(size)
341 #define __in_ecount(size)
342 #define __in_ecount_opt(size)
344 +#define __in_xcount(size)
347 #define __inout_bcount(size)
348 #define __inout_bcount_full(size)
350 #define __inout_ecount_part(size,length)
351 #define __inout_ecount_part_opt(size,length)
353 +#define __inout_xcount(size)
355 +#define __nullnullterminated
356 +#define __nullterminated
358 +#define __out_awcount(expr,size)
359 #define __out_bcount(size)
360 #define __out_bcount_full(size)
361 #define __out_bcount_full_opt(size)
362 @@ -119,12 +157,20 @@
363 #define __out_bcount_part(size,length)
364 #define __out_bcount_part_opt(size,length)
365 #define __out_ecount(size)
366 +#define __out_ecount(size)
367 #define __out_ecount_full(size)
368 #define __out_ecount_full_opt(size)
369 #define __out_ecount_opt(size)
370 #define __out_ecount_part(size,length)
371 #define __out_ecount_part_opt(size,length)
373 +#define __out_xcount(size)
374 +#define __out_xcount_opt(size)
376 +#define __struct_bcount(size)
377 +#define __success(expr)
378 +#define __typefix(ctype)
382 #endif /*_SPECSTRINGS_H */
383 --- include/uxtheme.h.orig 2008-12-06 11:32:11.000000000 +0900
384 +++ include/uxtheme.h 2009-08-21 09:21:56.000000000 +0900
389 -#if (_WIN32_WINNT >= 0x0501)
390 +#if (_WIN32_WINNT >= 0x0500)
391 #define DTBG_CLIPRECT 0x00000001
392 #define DTBG_DRAWSOLID 0x00000002
393 #define DTBG_OMITBORDER 0x00000004
394 --- include/winbase.h.orig 2008-12-06 11:32:11.000000000 +0900
395 +++ include/winbase.h 2009-08-21 09:21:56.000000000 +0900
396 @@ -1354,8 +1354,8 @@
397 WINBASEAPI HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,PVOID,FINDEX_SEARCH_OPS,PVOID,DWORD);
398 WINBASEAPI BOOL WINAPI FindFirstFreeAce(PACL,PVOID*);
399 #if (_WIN32_WINNT >= 0x0500)
400 -WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPCSTR,DWORD);
401 -WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPCWSTR,DWORD);
402 +WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
403 +WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
404 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointA(LPSTR,LPSTR,DWORD);
405 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointW(LPWSTR,LPWSTR,DWORD);
407 @@ -1363,7 +1363,7 @@
408 WINBASEAPI BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
409 WINBASEAPI BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
410 #if (_WIN32_WINNT >= 0x0500)
411 -WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPCSTR,DWORD);
412 +WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
413 WINBASEAPI BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
414 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
415 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
416 @@ -1475,10 +1475,10 @@
417 WINBASEAPI DWORD WINAPI GetLogicalDrives(void);
418 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsA(DWORD,LPSTR);
419 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsW(DWORD,LPWSTR);
420 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
421 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
422 WINBASEAPI DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
423 WINBASEAPI DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
426 WINBASEAPI BOOL WINAPI GetMailslotInfo(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD);
427 WINBASEAPI DWORD WINAPI GetModuleFileNameA(HINSTANCE,LPSTR,DWORD);
428 WINBASEAPI DWORD WINAPI GetModuleFileNameW(HINSTANCE,LPWSTR,DWORD);
429 @@ -1519,9 +1519,9 @@
431 WINBASEAPI HANDLE WINAPI GetProcessHeap(VOID);
432 WINBASEAPI DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
433 -#if (_WIN32_WINNT >= 0x0501)
434 +//#if (_WIN32_WINNT >= 0x0501)
435 WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
438 #if (_WIN32_WINNT >= 0x0500)
439 WINBASEAPI BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
441 @@ -1802,9 +1802,9 @@
442 WINBASEAPI BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
443 WINBASEAPI HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
444 WINBASEAPI HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
445 -#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
446 +//#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
447 WINBASEAPI HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
450 WINBASEAPI BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
451 WINBASEAPI HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
452 WINBASEAPI HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
453 @@ -2029,6 +2029,7 @@
454 WINBASEAPI DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
455 WINBASEAPI BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
456 WINBASEAPI BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
457 +WINBASEAPI UINT WINAPI WinExec(LPCSTR,UINT);
458 WINBASEAPI BOOL WINAPI WinLoadTrustProvider(GUID*);
459 WINBASEAPI BOOL WINAPI WriteFile(HANDLE,PCVOID,DWORD,PDWORD,LPOVERLAPPED);
460 WINBASEAPI BOOL WINAPI WriteFileEx(HANDLE,PCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
461 @@ -2151,9 +2152,9 @@
462 #define GetFileAttributesEx GetFileAttributesExW
463 #define GetFullPathName GetFullPathNameW
464 #define GetLogicalDriveStrings GetLogicalDriveStringsW
465 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
466 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
467 #define GetLongPathName GetLongPathNameW
470 #define GetModuleFileName GetModuleFileNameW
471 #define GetModuleHandle GetModuleHandleW
472 #if (_WIN32_WINNT >= 0x0500)
473 @@ -2346,9 +2347,9 @@
474 #define GetFileAttributesEx GetFileAttributesExA
475 #define GetFullPathName GetFullPathNameA
476 #define GetLogicalDriveStrings GetLogicalDriveStringsA
477 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
478 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
479 #define GetLongPathName GetLongPathNameA
482 #define GetNamedPipeHandleState GetNamedPipeHandleStateA
483 #define GetModuleHandle GetModuleHandleA
484 #if (_WIN32_WINNT >= 0x0500)
485 --- include/windef.h.orig 2008-12-06 11:32:12.000000000 +0900
486 +++ include/windef.h 2009-08-21 09:21:56.000000000 +0900
488 typedef unsigned int UINT,*PUINT,*LPUINT;
491 +#include <specstrings.h>
493 typedef UINT_PTR WPARAM;
494 typedef LONG_PTR LPARAM;
495 --- include/wininet.h.orig 2008-12-06 11:32:13.000000000 +0900
496 +++ include/wininet.h 2009-08-21 09:21:56.000000000 +0900
498 BOOL WINAPI InternetAutodial(DWORD,DWORD);
499 BOOL WINAPI InternetAutodialHangup(DWORD);
500 BOOL WINAPI InternetGetConnectedState(LPDWORD,DWORD);
501 +BOOL WINAPI InternetGetConnectedStateEx(LPDWORD,LPTSTR,DWORD,DWORD);
502 BOOL WINAPI InternetSetDialState(LPCTSTR,DWORD,DWORD);
503 BOOL WINAPI InternetReadFileExA(HINTERNET,LPINTERNET_BUFFERSA,DWORD,DWORD_PTR);
504 BOOL WINAPI InternetReadFileExW(HINTERNET,LPINTERNET_BUFFERSW,DWORD,DWORD_PTR);
505 --- include/winver.h.orig 2008-12-06 11:32:14.000000000 +0900
506 +++ include/winver.h 2009-08-21 09:21:56.000000000 +0900
507 @@ -101,10 +101,10 @@
508 DWORD WINAPI VerFindFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT,LPWSTR,PUINT);
509 DWORD WINAPI VerInstallFileA(DWORD,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,PUINT);
510 DWORD WINAPI VerInstallFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT);
511 -DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,PDWORD);
512 -DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,PDWORD);
513 -BOOL WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,PVOID);
514 -BOOL WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,PVOID);
515 +DWORD WINAPI GetFileVersionInfoSizeA(LPSTR,PDWORD);
516 +DWORD WINAPI GetFileVersionInfoSizeW(LPWSTR,PDWORD);
517 +BOOL WINAPI GetFileVersionInfoA(LPSTR,DWORD,DWORD,PVOID);
518 +BOOL WINAPI GetFileVersionInfoW(LPWSTR,DWORD,DWORD,PVOID);
519 DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
520 DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
521 BOOL WINAPI VerQueryValueA(const LPVOID,LPSTR,LPVOID*,PUINT);
522 --- include/wtypes.h.orig 2008-12-06 11:32:14.000000000 +0900
523 +++ include/wtypes.h 2009-08-21 09:21:56.000000000 +0900
525 unsigned short asData[1];
528 +typedef struct _COAUTHIDENTITY
530 + /* [size_is] */ USHORT *User;
531 + /* [range] */ ULONG UserLength;
532 + /* [size_is] */ USHORT *Domain;
533 + /* [range] */ ULONG DomainLength;
534 + /* [size_is] */ USHORT *Password;
535 + /* [range] */ ULONG PasswordLength;
539 +typedef WORD CLIPFORMAT,*LPCLIPFORMAT;
542 typedef WCHAR OLECHAR;
543 typedef LPWSTR LPOLESTR;
548 +typedef union tagCY *LPCY;
550 typedef struct tagBSTRBLOB {
553 #define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;}
555 typedef void *HMETAFILEPICT;
557 +typedef enum tagTYSPEC {
563 + TYSPEC_PACKAGENAME,
570 + LPOLESTR pMimeType;
572 + LPOLESTR pFileName;
574 + LPOLESTR pPackageName;
583 +typedef struct tagCSPLATFORM {
587 + DWORD dwProcessorArch;
590 +typedef struct tagQUERYCONTEXT {
592 + CSPLATFORM Platform;
605 --- include/adoctint.h.orig 2008-01-18 22:17:10.000000000 +0900
606 +++ include/adoctint.h 2009-08-21 09:21:56.000000000 +0900
608 //--------------------------------------------------------------------
612 +#pragma GCC system_header
617 @@ -2489,11 +2492,11 @@
618 #endif /* __Procedure_INTERFACE_DEFINED__ */
619 EXTERN_C const CLSID CLSID_Catalog;
624 EXTERN_C const CLSID CLSID_Table;
629 #ifndef __Property_INTERFACE_DEFINED__
630 #define __Property_INTERFACE_DEFINED__
631 @@ -2635,23 +2638,23 @@
632 #endif /* __Property_INTERFACE_DEFINED__ */
633 EXTERN_C const CLSID CLSID_Group;
638 EXTERN_C const CLSID CLSID_User;
643 EXTERN_C const CLSID CLSID_Column;
648 EXTERN_C const CLSID CLSID_Index;
653 EXTERN_C const CLSID CLSID_Key;
658 #ifndef __Tables_INTERFACE_DEFINED__
659 #define __Tables_INTERFACE_DEFINED__
660 @@ -3332,8 +3335,8 @@
661 /* [in] */ VARIANT Item,
662 /* [defaultvalue][in] */ KeyTypeEnum Type,
663 /* [optional][in] */ VARIANT Column,
664 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = L"",
665 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = L"") = 0;
666 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = const_cast<BSTR>(L""),
667 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = const_cast<BSTR>(L"")) = 0;
669 virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete(
670 /* [in] */ VARIANT Item) = 0;
671 --- include/adodef.h.orig 2008-01-18 22:17:10.000000000 +0900
672 +++ include/adodef.h 2009-08-21 09:21:56.000000000 +0900
678 +#pragma GCC system_header
681 // TYPELIB MAJOR VERSIONS
683 --- include/adoguids.h.orig 2008-01-18 22:17:10.000000000 +0900
684 +++ include/adoguids.h 2009-08-21 09:21:56.000000000 +0900
686 //-----------------------------------------------------------------------------
690 +#pragma GCC system_header
693 #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
695 #if defined(__midl) || defined(GEN_MIDL)
696 --- include/adoint.h.orig 2008-01-18 22:17:10.000000000 +0900
697 +++ include/adoint.h 2009-08-21 09:21:56.000000000 +0900
699 //--------------------------------------------------------------------
703 +#pragma GCC system_header
708 @@ -3494,7 +3497,7 @@
709 #endif /* __ADOConnectionConstruction_INTERFACE_DEFINED__ */
710 EXTERN_C const CLSID CLSID_Connection;
715 #ifndef ___Record_INTERFACE_DEFINED__
716 #define ___Record_INTERFACE_DEFINED__
717 @@ -3793,7 +3796,7 @@
718 #endif /* ___Record_INTERFACE_DEFINED__ */
719 EXTERN_C const CLSID CLSID_Record;
724 #ifndef ___Stream_INTERFACE_DEFINED__
725 #define ___Stream_INTERFACE_DEFINED__
726 @@ -4123,7 +4126,7 @@
727 #endif /* ___Stream_INTERFACE_DEFINED__ */
728 EXTERN_C const CLSID CLSID_Stream;
733 #ifndef __ADORecordConstruction_INTERFACE_DEFINED__
734 #define __ADORecordConstruction_INTERFACE_DEFINED__
735 @@ -4405,11 +4408,11 @@
736 #endif /* __ADOCommandConstruction_INTERFACE_DEFINED__ */
737 EXTERN_C const CLSID CLSID_Command;
742 EXTERN_C const CLSID CLSID_Recordset;
747 #ifndef __Recordset15_INTERFACE_DEFINED__
748 #define __Recordset15_INTERFACE_DEFINED__
749 @@ -8305,7 +8308,7 @@
750 #endif /* ___Parameter_INTERFACE_DEFINED__ */
751 EXTERN_C const CLSID CLSID_Parameter;
756 #ifndef __Parameters_INTERFACE_DEFINED__
757 #define __Parameters_INTERFACE_DEFINED__
758 --- include/bcrypt.h.orig 2008-01-18 22:17:12.000000000 +0900
759 +++ include/bcrypt.h 2008-04-10 22:57:54.410750000 +0900
764 -#if !defined(__midl)
765 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
767 -#define BCRYPT_STRUCT_ALIGNMENT
768 -#endif /*!defined(__midl)*/
774 #define BCRYPT_OBJECT_ALIGNMENT 4
777 -#if !defined(__midl)
778 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
780 #define BCRYPT_STRUCT_ALIGNMENT
781 -#endif /*!defined(__midl)*/
784 // DeriveKey KDF Types
787 typedef BCRYPT_KEY_LENGTHS_STRUCT BCRYPT_AUTH_TAG_LENGTHS_STRUCT;
789 -#pragma pack(push, BCRYPT_OBJECT_ALIGNMENT)
790 +#if defined(_IA64_) || defined(_AMD64_)
791 +#pragma pack(push, 8)
793 +#pragma pack(push, 4)
795 typedef BCRYPT_STRUCT_ALIGNMENT struct _BCRYPT_OID
798 --- include/commctrl.h.orig 2008-01-18 22:17:14.000000000 +0900
799 +++ include/commctrl.h 2009-08-21 09:21:56.000000000 +0900
801 #ifndef _INC_COMMCTRL
802 #define _INC_COMMCTRL
807 +#define __inline inline
809 +#define __inline static __inline__
812 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
813 #pragma warning(push)
814 #pragma warning(disable:4001) /* nonstandard extension : single line comment */
817 // Shell reserved (0U-580U) - (0U-589U)
820 #define CDN_FIRST (0U-601U) // common dialog (new)
821 #define CDN_LAST (0U-699U)
824 #define TBN_FIRST (0U-700U) // toolbar
825 #define TBN_LAST (0U-720U)
827 #define ILP_DOWNLEVEL 1 // Write or reads the stream using downlevel sematics.
830 -WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
831 +//WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
832 WINCOMMCTRLAPI HRESULT WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD dwFlags, LPSTREAM pstm);
838 #if (_WIN32_WINNT >= 0x0501)
839 -WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
840 +//WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
843 FORCEINLINE HIMAGELIST IImageListToHIMAGELIST(struct IImageList *himl)
844 @@ -8056,8 +8066,10 @@
845 #if (_WIN32_WINNT >= 0x0501)
847 // custom combobox control messages
848 +#ifndef CB_SETMINVISIBLE
849 #define CB_SETMINVISIBLE (CBM_FIRST + 1)
850 #define CB_GETMINVISIBLE (CBM_FIRST + 2)
852 #define CB_SETCUEBANNER (CBM_FIRST + 3)
853 #define CB_GETCUEBANNER (CBM_FIRST + 4)
855 @@ -8651,7 +8663,7 @@
857 #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
858 #if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
859 -#include "commctrl.inl"
860 +//#include "commctrl.inl"
861 #endif /* ISOLATION_AWARE_ENABLED */
864 @@ -8666,6 +8678,10 @@
872 #endif /* _INC_COMMCTRL */
875 --- include/control.h.orig 2008-01-18 22:17:14.000000000 +0900
876 +++ include/control.h 2009-08-21 09:21:56.000000000 +0900
879 +#pragma GCC system_header
883 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
884 --- include/dispex.h.orig 2008-01-18 22:17:16.000000000 +0900
885 +++ include/dispex.h 2009-08-21 09:21:56.000000000 +0900
888 +#pragma GCC system_header
892 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
893 --- include/filter.h.orig 2008-01-18 22:17:18.000000000 +0900
894 +++ include/filter.h 2009-08-21 09:21:56.000000000 +0900
897 +#pragma GCC system_header
901 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
902 --- include/gdiplusbitmap.h.orig 2008-01-18 22:17:46.000000000 +0900
903 +++ include/gdiplusbitmap.h 2009-08-21 09:21:56.000000000 +0900
906 +#pragma GCC system_header
908 /**************************************************************************\
910 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
911 --- include/gdiplusbrush.h.orig 2008-01-18 22:17:46.000000000 +0900
912 +++ include/gdiplusbrush.h 2009-08-21 09:21:56.000000000 +0900
915 +#pragma GCC system_header
917 /**************************************************************************\
919 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
920 --- include/gdiplusenums.h.orig 2008-01-18 22:17:46.000000000 +0900
921 +++ include/gdiplusenums.h 2009-08-21 09:21:56.000000000 +0900
924 #define GDIP_EMFPLUS_RECORD_BASE 0x00004000
925 #define GDIP_WMF_RECORD_BASE 0x00010000
926 -#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE))
927 +#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((n) | GDIP_WMF_RECORD_BASE)
928 #define GDIP_EMFPLUS_RECORD_TO_WMF(n) ((n) & (~GDIP_WMF_RECORD_BASE))
929 #define GDIP_IS_WMF_RECORDTYPE(n) (((n) & GDIP_WMF_RECORD_BASE) != 0)
931 --- include/gdiplusfont.h.orig 2008-01-18 22:17:46.000000000 +0900
932 +++ include/gdiplusfont.h 2009-08-21 09:21:56.000000000 +0900
935 +#pragma GCC system_header
937 /**************************************************************************\
939 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
940 --- include/gdiplusheaders.h.orig 2008-01-18 22:17:46.000000000 +0900
941 +++ include/gdiplusheaders.h 2008-03-28 21:44:34.907750000 +0900
944 class CachedBitmap : public GdiplusBase
947 + friend class Graphics;
950 CachedBitmap(IN Bitmap *bitmap,
953 UINT GetDownLevelRasterizationLimit() const;
955 - static UINT Metafile::EmfToWmfBits(
956 + static UINT EmfToWmfBits(
957 IN HENHMETAFILE hemf,
960 --- include/gdiplusimageattributes.h.orig 2008-01-18 22:17:46.000000000 +0900
961 +++ include/gdiplusimageattributes.h 2009-08-21 09:21:56.000000000 +0900
964 #ifndef _GDIPLUSIMAGEATTRIBUTES_H
965 #define _GDIPLUSIMAGEATTRIBUTES_H
967 +#pragma GCC system_header
970 class GpImageAttributes;
972 --- include/gdiplusimaging.h.orig 2008-01-18 22:17:46.000000000 +0900
973 +++ include/gdiplusimaging.h 2009-08-21 09:21:56.000000000 +0900
978 - PixelFormat PixelFormat;
979 + ::Gdiplus::PixelFormat PixelFormat;
983 --- include/gdiplusmatrix.h.orig 2008-01-18 22:17:46.000000000 +0900
984 +++ include/gdiplusmatrix.h 2009-08-21 09:21:56.000000000 +0900
987 +#pragma GCC system_header
989 /**************************************************************************\
991 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
992 --- include/gdipluspath.h.orig 2008-01-18 22:17:46.000000000 +0900
993 +++ include/gdipluspath.h 2009-08-21 09:21:56.000000000 +0900
996 +#pragma GCC system_header
998 /**************************************************************************\
1000 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1001 --- include/gdipluspen.h.orig 2008-01-18 22:17:46.000000000 +0900
1002 +++ include/gdipluspen.h 2009-08-21 09:21:56.000000000 +0900
1005 +#pragma GCC system_header
1007 /**************************************************************************\
1009 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1010 --- include/gdiplusregion.h.orig 2008-01-18 22:17:46.000000000 +0900
1011 +++ include/gdiplusregion.h 2009-08-21 09:21:56.000000000 +0900
1014 +#pragma GCC system_header
1016 /**************************************************************************\
1018 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
1019 --- include/gdiplusstringformat.h.orig 2008-01-18 22:17:46.000000000 +0900
1020 +++ include/gdiplusstringformat.h 2009-08-21 09:21:56.000000000 +0900
1025 - StringTrimming StringFormat::GetTrimming() const
1026 + StringTrimming GetTrimming() const
1028 StringTrimming trimming;
1029 SetStatus(DllExports::GdipGetStringFormatTrimming(
1030 --- include/imm.h.orig 2008-01-18 22:17:20.000000000 +0900
1031 +++ include/imm.h 2009-08-21 09:21:56.000000000 +0900
1039 +#define __inline inline
1041 +#define __inline static __inline__
1056 --- include/imagehlp.h.orig 2008-01-18 22:17:20.000000000 +0900
1057 +++ include/imagehlp.h 2009-08-21 09:21:56.000000000 +0900
1060 +#pragma GCC system_header
1062 /*++ BUILD Version: 0000 Increment this if a change has global effects
1064 Copyright (c) Microsoft Corporation. All rights reserved.
1066 #include <wintrust.h>
1072 +#define __inline inline
1074 +#define __inline static __inline__
1082 __in HANDLE FileHandle,
1083 - __in_opt PSYSTEMTIME pSystemTime
1084 + __in_opt LPSYSTEMTIME pSystemTime
1088 @@ -3950,7 +3960,7 @@
1089 // ThreadId must be 4 bytes on all architectures.
1092 -C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1093 +//C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1095 typedef struct _MINIDUMP_THREAD {
1097 @@ -4684,5 +4694,9 @@
1105 #endif // _IMAGEHLP_
1107 --- include/mapiwin.h.orig 2008-01-18 22:17:22.000000000 +0900
1108 +++ include/mapiwin.h 2009-08-21 09:21:56.000000000 +0900
1112 #endif /* __MAPIWIN_H__ */
1116 --- include/msdasc.h.orig 2008-01-18 22:17:26.000000000 +0900
1117 +++ include/msdasc.h 2009-08-21 09:21:56.000000000 +0900
1120 +#pragma GCC system_header
1124 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1125 --- include/msi.h.orig 2008-01-18 22:17:28.000000000 +0900
1126 +++ include/msi.h 2009-08-21 09:21:56.000000000 +0900
1128 #endif // _MSI_NO_CRYPTO
1129 #endif //(_WIN32_MSI >= 150)
1134 +#define __inline inline
1136 +#define __inline static __inline__
1139 // --------------------------------------------------------------------------
1140 // Installer generic handle definitions
1141 // --------------------------------------------------------------------------
1142 @@ -2248,5 +2256,9 @@
1152 --- include/msiquery.h.orig 2008-01-18 22:17:28.000000000 +0900
1153 +++ include/msiquery.h 2009-08-21 09:21:56.000000000 +0900
1155 #define _MSIQUERY_H_
1156 #include "msi.h" // INSTALLSTATE
1161 +#define __inline inline
1163 +#define __inline static __inline__
1166 #define MSI_NULL_INTEGER 0x80000000 // integer value reserved for null
1168 // MsiOpenDatabase persist predefine values, otherwise output database path is used
1169 @@ -1026,5 +1034,9 @@
1177 #endif // _MSIQUERY_H_
1179 --- include/multimon.h.orig 2008-01-18 22:17:30.000000000 +0900
1180 +++ include/multimon.h 2009-08-21 09:21:56.000000000 +0900
1185 - OSVERSIONINFOA osvi = {0};
1186 + OSVERSIONINFOA osvi;
1187 osvi.dwOSVersionInfoSize = sizeof(osvi);
1188 GetVersionExA((OSVERSIONINFOA*)&osvi);
1189 return (VER_PLATFORM_WIN32_NT == osvi.dwPlatformId);
1190 --- include/ntquery.h.orig 2008-01-18 22:17:30.000000000 +0900
1191 +++ include/ntquery.h 2009-02-16 21:34:39.065125000 +0900
1194 +#pragma GCC system_header
1196 //+---------------------------------------------------------------------------
1198 // Microsoft Windows
1201 #include "stgprop.h"
1206 +#define __inline inline
1208 +#define __inline static __inline__
1211 #if defined(__cplusplus)
1214 @@ -404,6 +415,10 @@
1222 #endif // __NTQUERY_H__
1225 --- include/ocidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1226 +++ include/ocidl.h 2009-08-21 09:21:56.000000000 +0900
1229 +#pragma GCC system_header
1233 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1234 @@ -294,6 +297,14 @@
1235 #include "servprov.h"
1241 +#define __inline inline
1243 +#define __inline static __inline__
1249 @@ -4595,11 +4606,13 @@
1254 typedef /* [v1_enum] */
1256 { DVASPECT_OPAQUE = 16,
1257 DVASPECT_TRANSPARENT = 32
1261 typedef struct tagExtentInfo
1263 @@ -6554,6 +6567,10 @@
1274 --- include/oleauto.h.orig 2008-01-18 22:17:32.000000000 +0900
1275 +++ include/oleauto.h 2009-08-21 09:21:56.000000000 +0900
1277 /* pull in the MIDL generated header */
1283 +#define __inline inline
1285 +#define __inline static __inline__
1289 /*---------------------------------------------------------------------*/
1291 @@ -1160,7 +1168,7 @@
1293 // Declare variant access functions.
1295 -#if __STDC__ || defined(NONAMELESSUNION)
1296 +#ifdef NONAMELESSUNION
1297 #define V_UNION(X, Y) ((X)->n1.n2.n3.Y)
1298 #define V_VT(X) ((X)->n1.n2.vt)
1299 #define V_RECORDINFO(X) ((X)->n1.n2.n3.brecVal.pRecInfo)
1300 @@ -1242,5 +1250,9 @@
1301 #include <poppack.h>
1302 #endif // RC_INVOKED
1308 #endif // __OLEAUTO_H__
1310 --- include/olectl.h.orig 2008-01-18 22:17:32.000000000 +0900
1311 +++ include/olectl.h 2009-08-21 09:21:56.000000000 +0900
1319 +#define __inline inline
1321 +#define __inline static __inline__
1325 #define WINOLECTLAPI STDAPI
1326 #define WINOLECTLAPI_(type) STDAPI_(type)
1329 #endif // defined(__MKTYPLIB__) || defined(__midl)
1335 #endif // _OLECTL_H_
1337 --- include/oledb.h.orig 2008-01-18 22:17:32.000000000 +0900
1338 +++ include/oledb.h 2009-08-21 09:21:56.000000000 +0900
1341 +#pragma GCC system_header
1345 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1349 #if( OLEDBVER >= 0x0200 )
1350 -#if !defined(_WINBASE_) && !defined(_FILETIME_)
1351 +#if !defined(_WINBASE_H) && !defined(_FILETIME_)
1353 typedef struct _FILETIME {
1354 DWORD dwLowDateTime;
1355 --- include/oleidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1356 +++ include/oleidl.h 2009-08-21 09:21:56.000000000 +0900
1359 +#pragma GCC system_header
1363 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1364 @@ -189,6 +192,14 @@
1365 /* header files for imported files */
1371 +#define __inline inline
1373 +#define __inline static __inline__
1379 @@ -3868,6 +3879,10 @@
1390 --- include/propidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1391 +++ include/propidl.h 2009-08-21 09:21:56.000000000 +0900
1399 +#define __inline inline
1401 +#define __inline static __inline__
1412 typedef struct tagCAUB
1422 // This is the PROPVARIANT padding layout for marshaling.
1425 #define PRSPEC_PROPID ( 1 )
1428 typedef struct tagPROPSPEC
1431 @@ -526,12 +537,14 @@
1437 // Macros for parsing the OS Version of the Property Set Header
1438 #define PROPSETHDR_OSVER_KIND(dwOSVer) HIWORD( (dwOSVer) )
1439 #define PROPSETHDR_OSVER_MAJOR(dwOSVer) LOBYTE(LOWORD( (dwOSVer) ))
1440 #define PROPSETHDR_OSVER_MINOR(dwOSVer) HIBYTE(LOWORD( (dwOSVer) ))
1441 #define PROPSETHDR_OSVERSION_UNKNOWN 0xFFFFFFFF
1443 typedef struct tagSTATPROPSETSTG
1446 @@ -542,12 +555,14 @@
1454 extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0000_v0_0_c_ifspec;
1455 extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0000_v0_0_s_ifspec;
1458 #ifndef __IPropertyStorage_INTERFACE_DEFINED__
1459 #define __IPropertyStorage_INTERFACE_DEFINED__
1461 @@ -1136,6 +1151,7 @@
1464 #endif /* __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ */
1468 /* interface __MIDL_itf_propidl_0000_0004 */
1469 @@ -1268,6 +1284,10 @@
1480 --- include/propkeydef.h.orig 2008-01-18 22:17:32.000000000 +0900
1481 +++ include/propkeydef.h 2009-08-21 09:21:56.000000000 +0900
1483 #define PID_FIRST_USABLE 2
1486 +#ifndef __MIDL_CONST
1487 +#define __MIDL_CONST const
1490 #ifndef REFPROPERTYKEY
1492 #define REFPROPERTYKEY const PROPERTYKEY &
1493 --- include/propsys.h.orig 2008-01-18 22:17:34.000000000 +0900
1494 +++ include/propsys.h 2009-08-21 09:21:56.000000000 +0900
1495 @@ -228,6 +228,14 @@
1497 #include <propkeydef.h>
1502 +#define __inline inline
1504 +#define __inline static __inline__
1508 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_c_ifspec;
1509 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_s_ifspec;
1510 @@ -3600,6 +3608,10 @@
1521 --- include/shlobj.h.orig 2008-01-18 22:17:36.000000000 +0900
1522 +++ include/shlobj.h 2009-08-21 09:21:56.000000000 +0900
1525 +#pragma GCC system_header
1527 /*===========================================================================
1529 Copyright (c) Microsoft Corporation. All rights reserved.
1530 @@ -103,6 +106,14 @@
1531 #include <shtypes.h>
1532 #include <shobjidl.h>
1537 +#define __inline inline
1539 +#define __inline static __inline__
1542 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
1545 @@ -3117,7 +3128,7 @@
1546 SHSTDAPI_(BOOL) ILIsEqual(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2);
1547 SHSTDAPI_(BOOL) ILIsParent(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2, BOOL fImmediate);
1548 SHSTDAPI ILSaveToStream(__in IStream *pstm, __in PCUIDLIST_RELATIVE pidl);
1549 -DECLSPEC_DEPRECATED SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
1550 +SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
1551 SHSTDAPI ILLoadFromStreamEx(__in IStream *pstm, __deref_out PIDLIST_RELATIVE *pidl);
1553 #if (_WIN32_IE >= 0x0400)
1554 @@ -4578,5 +4589,9 @@
1562 #endif /* _SHLOBJ_H_ */
1564 --- include/shobjidl.h.orig 2008-01-18 22:17:36.000000000 +0900
1565 +++ include/shobjidl.h 2009-08-21 09:21:56.000000000 +0900
1568 +#pragma GCC system_header
1572 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1573 @@ -1667,6 +1670,14 @@
1575 #include "propsys.h"
1580 +#define __inline inline
1582 +#define __inline static __inline__
1588 @@ -6384,7 +6395,6 @@
1590 typedef ICommDlgBrowser2 *LPCOMMDLGBROWSER2;
1592 -#endif // NTDDI_WIN2K
1593 #if (_WIN32_IE >= _WIN32_IE_IE70)
1596 @@ -6727,6 +6737,7 @@
1599 #endif // (_WIN32_IE >= _WIN32_IE_IE70)
1600 +#endif // NTDDI_WIN2K
1603 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0026_v0_0_c_ifspec;
1604 @@ -7331,6 +7342,13 @@
1605 typedef LPTBBUTTON LPTBBUTTONSB;
1611 +#define __inline inline
1613 +#define __inline static __inline__
1616 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_c_ifspec;
1617 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_s_ifspec;
1618 @@ -29000,6 +29018,10 @@
1629 --- include/shtypes.h.orig 2008-01-18 22:17:36.000000000 +0900
1630 +++ include/shtypes.h 2009-08-21 09:21:56.000000000 +0900
1633 +#pragma GCC system_header
1637 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1640 #endif // defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)
1641 #include <poppack.h>
1642 -typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
1643 +//typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
1645 typedef /* [wire_marshal] */ ITEMIDLIST __unaligned *LPITEMIDLIST;
1647 --- include/sspi.h.orig 2008-01-18 22:17:38.000000000 +0900
1648 +++ include/sspi.h 2009-08-21 09:21:56.000000000 +0900
1656 +#define __inline inline
1658 +#define __inline static __inline__
1664 @@ -2154,8 +2162,7 @@
1668 -#ifndef _AUTH_IDENTITY_DEFINED
1669 -#define _AUTH_IDENTITY_DEFINED
1670 +#ifndef SEC_WINNT_AUTH_IDENTITY_ANSI
1673 // This was not defined in NTIFS.h for windows 2000 however
1674 @@ -2326,6 +2333,10 @@
1683 #endif // __SSPI_H__
1685 --- include/strmif.h.orig 2008-01-18 22:17:38.000000000 +0900
1686 +++ include/strmif.h 2009-02-16 21:34:39.065125000 +0900
1689 +#pragma GCC system_header
1693 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1694 @@ -888,6 +891,14 @@
1701 +#define __inline inline
1703 +#define __inline static __inline__
1709 @@ -16250,7 +16261,7 @@
1710 #define _IAMFilterGraphCallback_
1711 // Note: Because this interface was not defined as a proper interface it is
1712 // supported under C++ only. Methods aren't stdcall.
1713 -EXTERN_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
1714 +DEFINE_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
1715 interface IAMFilterGraphCallback : public IUnknown
1717 // S_OK means rendering complete, S_FALSE means retry now.
1718 @@ -21934,7 +21945,7 @@
1719 typedef struct tagVMRGUID
1726 typedef struct tagVMRMONITORINFO
1727 @@ -23341,6 +23352,10 @@
1738 --- include/strsafe.h.orig 2008-01-18 22:17:38.000000000 +0900
1739 +++ include/strsafe.h 2009-02-16 21:34:39.065125000 +0900
1741 #if (_MSC_VER > 1000)
1745 +#pragma GCC system_header
1748 #include <stdio.h> // for _vsnprintf, _vsnwprintf, getc, getwc
1749 #include <string.h> // for memset
1750 #include <stdarg.h> // for va_start, etc.
1751 #include <specstrings.h> // for __in, etc.
1756 +#define __inline inline
1758 +#define __inline static __inline__
1762 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && (_MSC_VER >= 1300)
1764 @@ -9254,7 +9265,7 @@
1765 wchar_t ch = getwc(stdin);
1766 // ASSERT(sizeof(wchar_t) == sizeof(wint_t));
1771 if (cchNewDestLength == 0)
1773 @@ -9763,5 +9774,9 @@
1775 #pragma warning(pop)
1781 #endif // _STRSAFE_H_INCLUDED_
1783 --- include/structuredquery.h.orig 2008-01-18 22:17:38.000000000 +0900
1784 +++ include/structuredquery.h 2009-08-21 09:21:56.000000000 +0900
1785 @@ -233,6 +233,14 @@
1787 #include "propidl.h"
1792 +#define __inline inline
1794 +#define __inline static __inline__
1800 @@ -2472,6 +2480,10 @@
1811 --- include/urlmon.h.orig 2008-01-18 22:17:40.000000000 +0900
1812 +++ include/urlmon.h 2009-08-21 09:21:56.000000000 +0900
1815 +#pragma GCC system_header
1819 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1820 @@ -330,6 +333,14 @@
1821 #include "servprov.h"
1827 +#define __inline inline
1829 +#define __inline static __inline__
1835 @@ -8880,6 +8891,10 @@
1846 --- include/wincrypt.h.orig 2008-01-18 22:17:42.000000000 +0900
1847 +++ include/wincrypt.h 2009-02-16 21:34:39.065125000 +0900
1850 #include <specstrings.h> /* for SAL annotations */
1855 +#define __inline inline
1857 +#define __inline static __inline__
1860 #if defined (_MSC_VER)
1862 #if ( _MSC_VER >= 800 )
1863 @@ -1927,6 +1935,14 @@
1870 +#define __inline inline
1872 +#define __inline static __inline__
1875 // This type is used when the API can take either the CAPI1 HCRYPTPROV or
1876 // the CNG NCRYPT_KEY_HANDLE. Where appropriate, the HCRYPTPROV will be
1877 // converted to a NCRYPT_KEY_HANDLE via the CNG NCryptTranslateHandle().
1878 @@ -17113,8 +17129,8 @@
1880 __in_opt PCRYPT_KEY_PROV_INFO pKeyProvInfo,
1881 __in_opt PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
1882 - __in_opt PSYSTEMTIME pStartTime,
1883 - __in_opt PSYSTEMTIME pEndTime,
1884 + __in_opt LPSYSTEMTIME pStartTime,
1885 + __in_opt LPSYSTEMTIME pEndTime,
1886 __in_opt PCERT_EXTENSIONS pExtensions
1889 @@ -19174,6 +19190,10 @@
1897 #endif // __WINCRYPT_H__
1900 --- include/winerror.h.orig 2008-01-18 22:17:42.000000000 +0900
1901 +++ include/winerror.h 2009-08-21 09:21:56.000000000 +0900
1904 #include <specstrings.h>
1907 +#define __inline inline
1909 +#define __inline static __inline__
1912 // Values are 32 bit values laid out as follows:
1914 --- include/wingdi.h.orig 2008-01-18 22:17:42.000000000 +0900
1915 +++ include/wingdi.h 2009-08-21 09:21:56.000000000 +0900
1923 +#define __inline inline
1925 +#define __inline static __inline__
1930 @@ -1901,7 +1908,7 @@
1931 /* size of a form name string */
1932 #define CCHFORMNAME 32
1934 -#if (_WIN32_WINNT >= ((OSVER(NTDDI_WINXPSP2)) >> 16))
1935 +#if (_WIN32_WINNT >= ((NTDDI_WINXPSP2 & 0xFFFF0000) >> 16))
1936 typedef struct _devicemodeA {
1937 BYTE dmDeviceName[CCHDEVICENAME];
1939 @@ -5424,6 +5431,10 @@
1947 #endif /* _WINGDI_ */
1950 --- include/wintrust.h.orig 2008-01-18 22:17:42.000000000 +0900
1951 +++ include/wintrust.h 2009-08-21 09:21:56.000000000 +0900
1952 @@ -1252,6 +1252,7 @@
1954 #ifdef WT_DEFINE_ALL_APIS
1957 typedef struct _WIN_CERTIFICATE
1960 @@ -1260,6 +1261,7 @@
1961 BYTE bCertificate[ANYSIZE_ARRAY];
1963 } WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
1966 #define WIN_CERT_REVISION_1_0 (0x0100)
1967 #define WIN_CERT_REVISION_2_0 (0x0200)
1968 --- include/winuser.h.orig 2008-01-18 22:17:44.000000000 +0900
1969 +++ include/winuser.h 2009-08-21 09:21:56.000000000 +0900
1977 +#define __inline inline
1979 +#define __inline static __inline__
1981 +DECLARE_HANDLE(HHOOK);
1982 +typedef CONST GUID *LPCGUID;
1987 #define WINVER 0x0500 /* version 5.0 */
1988 #endif /* !WINVER */
1990 -#include <stdarg.h>
1991 +#include <../include/stdarg.h>
1995 @@ -10717,7 +10726,7 @@
1996 #define CDS_RESET 0x40000000
1997 #define CDS_NORESET 0x10000000
2000 +//#include <tvout.h>
2002 /* Return values for ChangeDisplaySettings */
2003 #define DISP_CHANGE_SUCCESSFUL 0
2004 @@ -12571,16 +12580,20 @@
2008 -#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2009 -#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2010 -#include "winuser.inl"
2011 -#endif /* ISOLATION_AWARE_ENABLED */
2013 +//#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2014 +//#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2015 +//#include "winuser.inl"
2016 +//#endif /* ISOLATION_AWARE_ENABLED */
2021 #endif /* __cplusplus */
2027 #endif /* !_WINUSER_ */
2030 --- include/wspiapi.h.orig 2008-01-18 22:17:44.000000000 +0900
2031 +++ include/wspiapi.h 2009-08-21 09:21:56.000000000 +0900
2037 +#pragma GCC system_header
2046 +#define _inline inline
2047 +#define __inline inline
2049 +#define _inline static __inline__
2050 +#define __inline static __inline__
2053 ////////////////////////////////////////////////////////////
2054 @@ -1052,6 +1060,8 @@
2055 (*pfFreeAddrInfo)(ai);
2063 --- include/d3dtypes.h.orig 2004-09-27 12:34:16.000000000 +0900
2064 +++ include/d3dtypes.h 2007-11-30 21:42:09.558750000 +0900
2067 +#pragma GCC system_header
2069 /*==========================================================================;
2071 * Copyright (C) Microsoft Corporation. All Rights Reserved.
2072 --- include/d3dx9core.h.orig 2006-03-31 12:16:02.000000000 +0900
2073 +++ include/d3dx9core.h 2009-08-21 09:21:56.000000000 +0900
2076 +#pragma GCC system_header
2078 ///////////////////////////////////////////////////////////////////////////
2080 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2081 --- include/d3dx9math.h.orig 2005-07-22 17:00:18.000000000 +0900
2082 +++ include/d3dx9math.h 2009-08-21 09:21:56.000000000 +0900
2085 +#pragma GCC system_header
2087 //////////////////////////////////////////////////////////////////////////////
2089 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2090 --- include/d3dx9math.inl.orig 2005-03-18 17:26:56.000000000 +0900
2091 +++ include/d3dx9math.inl 2009-08-21 09:21:56.000000000 +0900
2094 +#pragma GCC system_header
2096 //////////////////////////////////////////////////////////////////////////////
2098 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2099 --- include/dxtrans.h.orig 2004-09-28 00:18:32.000000000 +0900
2100 +++ include/dxtrans.h 2007-01-02 22:08:41.640625000 +0900
2103 +#pragma GCC system_header
2106 #pragma warning( disable: 4049 ) /* more than 64k source lines */