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/objidl.h.orig 2008-12-06 11:32:04.000000000 +0900
211 +++ include/objidl.h 2009-08-21 09:21:56.000000000 +0900
213 +#include <windows.h>
220 STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
221 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
222 STDMETHOD_(ULONG,Release)(THIS) PURE;
223 - STDMETHOD(AddConnection)(THIS_ DWORD,DWORD) PURE;
224 - STDMETHOD(ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
225 + STDMETHOD_(DWORD,AddConnection)(THIS_ DWORD,DWORD) PURE;
226 + STDMETHOD_(DWORD,ReleaseConnection)(THIS_ DWORD,DWORD,BOOL) PURE;
230 --- include/specstrings.h.orig 2008-12-06 11:32:09.000000000 +0900
231 +++ include/specstrings.h 2009-08-21 09:21:56.000000000 +0900
233 /* __in and __out currently conflict with libstdc++, use with caution */
236 +#define __RPC__deref_inout_opt
237 +#define __RPC__deref_opt_inout_ecount_full_opt(size)
238 +#define __RPC__deref_opt_inout_opt
239 +#define __RPC__deref_out
240 +#define __RPC__deref_out_ecount_full_opt(size)
241 +#define __RPC__deref_out_opt
242 +#define __RPC__deref_out_opt_string
244 +#define __RPC__in_ecount_full(size)
245 +#define __RPC__in_ecount_full_opt(size)
246 +#define __RPC__in_opt
247 +#define __RPC__inout
248 +#define __RPC__inout_ecount_full(size)
249 +#define __RPC__inout_ecount_full_opt(size)
250 +#define __RPC__inout_opt
252 +#define __RPC__out_ecount_full(size)
253 +#define __RPC__out_ecount_full_string(size)
254 +#define __RPC__out_ecount_part(size,init)
255 +#define __RPC_unique_pointer
256 #define __bcount(size)
257 #define __bcount_opt(size)
259 +#define __checkReturn
261 #define __deref_bcount(size)
262 #define __deref_bcount_opt(size)
263 #define __deref_ecount(size)
265 #define __deref_inout_ecount_opt(size)
266 #define __deref_inout_ecount_part(size,length)
267 #define __deref_inout_ecount_part_opt(size,length)
268 +#define __deref_inout_ecount_z(size)
269 #define __deref_inout_opt
270 #define __deref_opt_bcount(size)
271 #define __deref_opt_bcount_opt(size)
273 #define __deref_out_ecount_part(size,length)
274 #define __deref_out_ecount_part_opt(size,length)
275 #define __deref_out_opt
276 +#define __deref_out_z
277 +#define __deref_out_z_opt
278 #define __ecount(size)
279 #define __ecount_opt(size)
280 +#define __field_bcount(size)
281 +#define __field_ecount(size)
282 +#define __field_ecount_opt(size)
283 +#define __format_string
286 #define __in_bcount(size)
287 #define __in_bcount_opt(size)
288 #define __in_ecount(size)
289 #define __in_ecount_opt(size)
291 +#define __in_xcount(size)
294 #define __inout_bcount(size)
295 #define __inout_bcount_full(size)
297 #define __inout_ecount_part(size,length)
298 #define __inout_ecount_part_opt(size,length)
300 +#define __inout_xcount(size)
302 +#define __nullnullterminated
303 +#define __nullterminated
305 +#define __out_awcount(expr,size)
306 #define __out_bcount(size)
307 #define __out_bcount_full(size)
308 #define __out_bcount_full_opt(size)
309 @@ -119,12 +157,20 @@
310 #define __out_bcount_part(size,length)
311 #define __out_bcount_part_opt(size,length)
312 #define __out_ecount(size)
313 +#define __out_ecount(size)
314 #define __out_ecount_full(size)
315 #define __out_ecount_full_opt(size)
316 #define __out_ecount_opt(size)
317 #define __out_ecount_part(size,length)
318 #define __out_ecount_part_opt(size,length)
320 +#define __out_xcount(size)
321 +#define __out_xcount_opt(size)
323 +#define __struct_bcount(size)
324 +#define __success(expr)
325 +#define __typefix(ctype)
329 #endif /*_SPECSTRINGS_H */
330 --- include/uxtheme.h.orig 2008-12-06 11:32:11.000000000 +0900
331 +++ include/uxtheme.h 2010-01-22 14:50:56.327000000 +0900
336 -#if (_WIN32_WINNT >= 0x0501)
337 +#if (_WIN32_WINNT >= 0x0500)
338 #define DTBG_CLIPRECT 0x00000001
339 #define DTBG_DRAWSOLID 0x00000002
340 #define DTBG_OMITBORDER 0x00000004
342 #define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT|HTTB_RESIZINGBORDER_TOP|HTTB_RESIZINGBORDER_RIGHT|HTTB_RESIZINGBORDER_BOTTOM)
343 #define HTTB_SIZINGTEMPLATE 0x0100
344 #define HTTB_SYSTEMSIZINGMARGINS 0x0200
346 #define TMT_DISPLAYNAME 0x0259
347 #define TMT_TOOLTIP 0x025A
348 #define TMT_COMPANY 0x025B
350 #define BT_IMAGEFILE 0x0000
351 #define BT_BORDERFILL 0x0001
352 #define BT_NONE 0x0002
355 typedef enum PROPERTYORIGIN {
357 --- include/winbase.h.orig 2008-12-06 11:32:11.000000000 +0900
358 +++ include/winbase.h 2009-08-21 09:21:56.000000000 +0900
359 @@ -1354,8 +1354,8 @@
360 WINBASEAPI HANDLE WINAPI FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,PVOID,FINDEX_SEARCH_OPS,PVOID,DWORD);
361 WINBASEAPI BOOL WINAPI FindFirstFreeAce(PACL,PVOID*);
362 #if (_WIN32_WINNT >= 0x0500)
363 -WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPCSTR,DWORD);
364 -WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPCWSTR,DWORD);
365 +WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPSTR,DWORD);
366 +WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPWSTR,DWORD);
367 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointA(LPSTR,LPSTR,DWORD);
368 WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointW(LPWSTR,LPWSTR,DWORD);
370 @@ -1363,7 +1363,7 @@
371 WINBASEAPI BOOL WINAPI FindNextFileA(HANDLE,LPWIN32_FIND_DATAA);
372 WINBASEAPI BOOL WINAPI FindNextFileW(HANDLE,LPWIN32_FIND_DATAW);
373 #if (_WIN32_WINNT >= 0x0500)
374 -WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPCSTR,DWORD);
375 +WINBASEAPI BOOL WINAPI FindNextVolumeA(HANDLE,LPSTR,DWORD);
376 WINBASEAPI BOOL WINAPI FindNextVolumeW(HANDLE,LPWSTR,DWORD);
377 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD);
378 WINBASEAPI BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD);
379 @@ -1475,10 +1475,10 @@
380 WINBASEAPI DWORD WINAPI GetLogicalDrives(void);
381 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsA(DWORD,LPSTR);
382 WINBASEAPI DWORD WINAPI GetLogicalDriveStringsW(DWORD,LPWSTR);
383 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
384 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
385 WINBASEAPI DWORD WINAPI GetLongPathNameA(LPCSTR,LPSTR,DWORD);
386 WINBASEAPI DWORD WINAPI GetLongPathNameW(LPCWSTR,LPWSTR,DWORD);
389 WINBASEAPI BOOL WINAPI GetMailslotInfo(HANDLE,PDWORD,PDWORD,PDWORD,PDWORD);
390 WINBASEAPI DWORD WINAPI GetModuleFileNameA(HINSTANCE,LPSTR,DWORD);
391 WINBASEAPI DWORD WINAPI GetModuleFileNameW(HINSTANCE,LPWSTR,DWORD);
392 @@ -1519,9 +1519,9 @@
394 WINBASEAPI HANDLE WINAPI GetProcessHeap(VOID);
395 WINBASEAPI DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
396 -#if (_WIN32_WINNT >= 0x0501)
397 +//#if (_WIN32_WINNT >= 0x0501)
398 WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
401 #if (_WIN32_WINNT >= 0x0500)
402 WINBASEAPI BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
404 @@ -1802,9 +1802,9 @@
405 WINBASEAPI BOOL WINAPI OpenProcessToken(HANDLE,DWORD,PHANDLE);
406 WINBASEAPI HANDLE WINAPI OpenSemaphoreA(DWORD,BOOL,LPCSTR);
407 WINBASEAPI HANDLE WINAPI OpenSemaphoreW(DWORD,BOOL,LPCWSTR);
408 -#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
409 +//#if (_WIN32_WINNT >= 0x0500) || (_WIN32_WINDOWS >= 0x0490)
410 WINBASEAPI HANDLE WINAPI OpenThread(DWORD,BOOL,DWORD);
413 WINBASEAPI BOOL WINAPI OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE);
414 WINBASEAPI HANDLE WINAPI OpenWaitableTimerA(DWORD,BOOL,LPCSTR);
415 WINBASEAPI HANDLE WINAPI OpenWaitableTimerW(DWORD,BOOL,LPCWSTR);
416 @@ -2029,6 +2029,7 @@
417 WINBASEAPI DWORD WINAPI WaitForSingleObjectEx(HANDLE,DWORD,BOOL);
418 WINBASEAPI BOOL WINAPI WaitNamedPipeA(LPCSTR,DWORD);
419 WINBASEAPI BOOL WINAPI WaitNamedPipeW(LPCWSTR,DWORD);
420 +WINBASEAPI UINT WINAPI WinExec(LPCSTR,UINT);
421 WINBASEAPI BOOL WINAPI WinLoadTrustProvider(GUID*);
422 WINBASEAPI BOOL WINAPI WriteFile(HANDLE,PCVOID,DWORD,PDWORD,LPOVERLAPPED);
423 WINBASEAPI BOOL WINAPI WriteFileEx(HANDLE,PCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
424 @@ -2151,9 +2152,9 @@
425 #define GetFileAttributesEx GetFileAttributesExW
426 #define GetFullPathName GetFullPathNameW
427 #define GetLogicalDriveStrings GetLogicalDriveStringsW
428 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
429 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
430 #define GetLongPathName GetLongPathNameW
433 #define GetModuleFileName GetModuleFileNameW
434 #define GetModuleHandle GetModuleHandleW
435 #if (_WIN32_WINNT >= 0x0500)
436 @@ -2346,9 +2347,9 @@
437 #define GetFileAttributesEx GetFileAttributesExA
438 #define GetFullPathName GetFullPathNameA
439 #define GetLogicalDriveStrings GetLogicalDriveStringsA
440 -#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
441 +//#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
442 #define GetLongPathName GetLongPathNameA
445 #define GetNamedPipeHandleState GetNamedPipeHandleStateA
446 #define GetModuleHandle GetModuleHandleA
447 #if (_WIN32_WINNT >= 0x0500)
448 --- include/windef.h.orig 2008-12-06 11:32:12.000000000 +0900
449 +++ include/windef.h 2009-08-21 09:21:56.000000000 +0900
451 typedef unsigned int UINT,*PUINT,*LPUINT;
454 +#include <specstrings.h>
456 typedef UINT_PTR WPARAM;
457 typedef LONG_PTR LPARAM;
458 --- include/wininet.h.orig 2008-12-06 11:32:13.000000000 +0900
459 +++ include/wininet.h 2009-08-21 09:21:56.000000000 +0900
461 BOOL WINAPI InternetAutodial(DWORD,DWORD);
462 BOOL WINAPI InternetAutodialHangup(DWORD);
463 BOOL WINAPI InternetGetConnectedState(LPDWORD,DWORD);
464 +BOOL WINAPI InternetGetConnectedStateEx(LPDWORD,LPTSTR,DWORD,DWORD);
465 BOOL WINAPI InternetSetDialState(LPCTSTR,DWORD,DWORD);
466 BOOL WINAPI InternetReadFileExA(HINTERNET,LPINTERNET_BUFFERSA,DWORD,DWORD_PTR);
467 BOOL WINAPI InternetReadFileExW(HINTERNET,LPINTERNET_BUFFERSW,DWORD,DWORD_PTR);
468 --- include/winver.h.orig 2008-12-06 11:32:14.000000000 +0900
469 +++ include/winver.h 2009-08-21 09:21:56.000000000 +0900
470 @@ -101,10 +101,10 @@
471 DWORD WINAPI VerFindFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT,LPWSTR,PUINT);
472 DWORD WINAPI VerInstallFileA(DWORD,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,LPSTR,PUINT);
473 DWORD WINAPI VerInstallFileW(DWORD,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,LPWSTR,PUINT);
474 -DWORD WINAPI GetFileVersionInfoSizeA(LPCSTR,PDWORD);
475 -DWORD WINAPI GetFileVersionInfoSizeW(LPCWSTR,PDWORD);
476 -BOOL WINAPI GetFileVersionInfoA(LPCSTR,DWORD,DWORD,PVOID);
477 -BOOL WINAPI GetFileVersionInfoW(LPCWSTR,DWORD,DWORD,PVOID);
478 +DWORD WINAPI GetFileVersionInfoSizeA(LPSTR,PDWORD);
479 +DWORD WINAPI GetFileVersionInfoSizeW(LPWSTR,PDWORD);
480 +BOOL WINAPI GetFileVersionInfoA(LPSTR,DWORD,DWORD,PVOID);
481 +BOOL WINAPI GetFileVersionInfoW(LPWSTR,DWORD,DWORD,PVOID);
482 DWORD WINAPI VerLanguageNameA(DWORD,LPSTR,DWORD);
483 DWORD WINAPI VerLanguageNameW(DWORD,LPWSTR,DWORD);
484 BOOL WINAPI VerQueryValueA(const LPVOID,LPSTR,LPVOID*,PUINT);
485 --- include/wtypes.h.orig 2008-12-06 11:32:14.000000000 +0900
486 +++ include/wtypes.h 2009-08-21 09:21:56.000000000 +0900
488 unsigned short asData[1];
491 +typedef struct _COAUTHIDENTITY
493 + /* [size_is] */ USHORT *User;
494 + /* [range] */ ULONG UserLength;
495 + /* [size_is] */ USHORT *Domain;
496 + /* [range] */ ULONG DomainLength;
497 + /* [size_is] */ USHORT *Password;
498 + /* [range] */ ULONG PasswordLength;
502 +typedef WORD CLIPFORMAT,*LPCLIPFORMAT;
505 typedef WCHAR OLECHAR;
506 typedef LPWSTR LPOLESTR;
511 +typedef union tagCY *LPCY;
513 typedef struct tagBSTRBLOB {
516 #define DECIMAL_SETZERO(d) {(d).Lo64=(d).Hi32=(d).signscale=0;}
518 typedef void *HMETAFILEPICT;
520 +typedef enum tagTYSPEC {
526 + TYSPEC_PACKAGENAME,
533 + LPOLESTR pMimeType;
535 + LPOLESTR pFileName;
537 + LPOLESTR pPackageName;
546 +typedef struct tagCSPLATFORM {
550 + DWORD dwProcessorArch;
553 +typedef struct tagQUERYCONTEXT {
555 + CSPLATFORM Platform;
568 --- include/adoctint.h.orig 2008-01-18 22:17:10.000000000 +0900
569 +++ include/adoctint.h 2009-08-21 09:21:56.000000000 +0900
571 //--------------------------------------------------------------------
575 +#pragma GCC system_header
580 @@ -2489,11 +2492,11 @@
581 #endif /* __Procedure_INTERFACE_DEFINED__ */
582 EXTERN_C const CLSID CLSID_Catalog;
587 EXTERN_C const CLSID CLSID_Table;
592 #ifndef __Property_INTERFACE_DEFINED__
593 #define __Property_INTERFACE_DEFINED__
594 @@ -2635,23 +2638,23 @@
595 #endif /* __Property_INTERFACE_DEFINED__ */
596 EXTERN_C const CLSID CLSID_Group;
601 EXTERN_C const CLSID CLSID_User;
606 EXTERN_C const CLSID CLSID_Column;
611 EXTERN_C const CLSID CLSID_Index;
616 EXTERN_C const CLSID CLSID_Key;
621 #ifndef __Tables_INTERFACE_DEFINED__
622 #define __Tables_INTERFACE_DEFINED__
623 @@ -3332,8 +3335,8 @@
624 /* [in] */ VARIANT Item,
625 /* [defaultvalue][in] */ KeyTypeEnum Type,
626 /* [optional][in] */ VARIANT Column,
627 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = L"",
628 - /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = L"") = 0;
629 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOTable = const_cast<BSTR>(L""),
630 + /* [defaultvalue][in] */ __RPC__in BSTR RelatedADOColumn = const_cast<BSTR>(L"")) = 0;
632 virtual /* [helpcontext] */ HRESULT STDMETHODCALLTYPE Delete(
633 /* [in] */ VARIANT Item) = 0;
634 --- include/adodef.h.orig 2008-01-18 22:17:10.000000000 +0900
635 +++ include/adodef.h 2009-08-21 09:21:56.000000000 +0900
641 +#pragma GCC system_header
644 // TYPELIB MAJOR VERSIONS
646 --- include/adoguids.h.orig 2008-01-18 22:17:10.000000000 +0900
647 +++ include/adoguids.h 2009-08-21 09:21:56.000000000 +0900
649 //-----------------------------------------------------------------------------
653 +#pragma GCC system_header
656 #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
658 #if defined(__midl) || defined(GEN_MIDL)
659 --- include/adoint.h.orig 2008-01-18 22:17:10.000000000 +0900
660 +++ include/adoint.h 2009-08-21 09:21:56.000000000 +0900
662 //--------------------------------------------------------------------
666 +#pragma GCC system_header
671 @@ -3494,7 +3497,7 @@
672 #endif /* __ADOConnectionConstruction_INTERFACE_DEFINED__ */
673 EXTERN_C const CLSID CLSID_Connection;
678 #ifndef ___Record_INTERFACE_DEFINED__
679 #define ___Record_INTERFACE_DEFINED__
680 @@ -3793,7 +3796,7 @@
681 #endif /* ___Record_INTERFACE_DEFINED__ */
682 EXTERN_C const CLSID CLSID_Record;
687 #ifndef ___Stream_INTERFACE_DEFINED__
688 #define ___Stream_INTERFACE_DEFINED__
689 @@ -4123,7 +4126,7 @@
690 #endif /* ___Stream_INTERFACE_DEFINED__ */
691 EXTERN_C const CLSID CLSID_Stream;
696 #ifndef __ADORecordConstruction_INTERFACE_DEFINED__
697 #define __ADORecordConstruction_INTERFACE_DEFINED__
698 @@ -4405,11 +4408,11 @@
699 #endif /* __ADOCommandConstruction_INTERFACE_DEFINED__ */
700 EXTERN_C const CLSID CLSID_Command;
705 EXTERN_C const CLSID CLSID_Recordset;
710 #ifndef __Recordset15_INTERFACE_DEFINED__
711 #define __Recordset15_INTERFACE_DEFINED__
712 @@ -8305,7 +8308,7 @@
713 #endif /* ___Parameter_INTERFACE_DEFINED__ */
714 EXTERN_C const CLSID CLSID_Parameter;
719 #ifndef __Parameters_INTERFACE_DEFINED__
720 #define __Parameters_INTERFACE_DEFINED__
721 --- include/bcrypt.h.orig 2008-01-18 22:17:12.000000000 +0900
722 +++ include/bcrypt.h 2008-04-10 22:57:54.410750000 +0900
727 -#if !defined(__midl)
728 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
730 -#define BCRYPT_STRUCT_ALIGNMENT
731 -#endif /*!defined(__midl)*/
737 #define BCRYPT_OBJECT_ALIGNMENT 4
740 -#if !defined(__midl)
741 -#define BCRYPT_STRUCT_ALIGNMENT __declspec(align(BCRYPT_OBJECT_ALIGNMENT))
743 #define BCRYPT_STRUCT_ALIGNMENT
744 -#endif /*!defined(__midl)*/
747 // DeriveKey KDF Types
750 typedef BCRYPT_KEY_LENGTHS_STRUCT BCRYPT_AUTH_TAG_LENGTHS_STRUCT;
752 -#pragma pack(push, BCRYPT_OBJECT_ALIGNMENT)
753 +#if defined(_IA64_) || defined(_AMD64_)
754 +#pragma pack(push, 8)
756 +#pragma pack(push, 4)
758 typedef BCRYPT_STRUCT_ALIGNMENT struct _BCRYPT_OID
761 --- include/commctrl.h.orig 2008-01-18 22:17:14.000000000 +0900
762 +++ include/commctrl.h 2009-08-21 09:21:56.000000000 +0900
764 #ifndef _INC_COMMCTRL
765 #define _INC_COMMCTRL
770 +#define __inline inline
772 +#define __inline static __inline__
775 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
776 #pragma warning(push)
777 #pragma warning(disable:4001) /* nonstandard extension : single line comment */
780 // Shell reserved (0U-580U) - (0U-589U)
783 #define CDN_FIRST (0U-601U) // common dialog (new)
784 #define CDN_LAST (0U-699U)
787 #define TBN_FIRST (0U-700U) // toolbar
788 #define TBN_LAST (0U-720U)
790 #define ILP_DOWNLEVEL 1 // Write or reads the stream using downlevel sematics.
793 -WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
794 +//WINCOMMCTRLAPI HRESULT WINAPI ImageList_ReadEx(DWORD dwFlags, LPSTREAM pstm, REFIID riid, PVOID* ppv);
795 WINCOMMCTRLAPI HRESULT WINAPI ImageList_WriteEx(HIMAGELIST himl, DWORD dwFlags, LPSTREAM pstm);
801 #if (_WIN32_WINNT >= 0x0501)
802 -WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
803 +//WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST himl, REFIID riid, void** ppv);
806 FORCEINLINE HIMAGELIST IImageListToHIMAGELIST(struct IImageList *himl)
807 @@ -8056,8 +8066,10 @@
808 #if (_WIN32_WINNT >= 0x0501)
810 // custom combobox control messages
811 +#ifndef CB_SETMINVISIBLE
812 #define CB_SETMINVISIBLE (CBM_FIRST + 1)
813 #define CB_GETMINVISIBLE (CBM_FIRST + 2)
815 #define CB_SETCUEBANNER (CBM_FIRST + 3)
816 #define CB_GETCUEBANNER (CBM_FIRST + 4)
818 @@ -8651,7 +8663,7 @@
820 #if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
821 #if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
822 -#include "commctrl.inl"
823 +//#include "commctrl.inl"
824 #endif /* ISOLATION_AWARE_ENABLED */
827 @@ -8666,6 +8678,10 @@
835 #endif /* _INC_COMMCTRL */
838 --- include/control.h.orig 2008-01-18 22:17:14.000000000 +0900
839 +++ include/control.h 2009-08-21 09:21:56.000000000 +0900
842 +#pragma GCC system_header
846 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
847 --- include/dispex.h.orig 2008-01-18 22:17:16.000000000 +0900
848 +++ include/dispex.h 2009-08-21 09:21:56.000000000 +0900
851 +#pragma GCC system_header
855 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
856 --- include/filter.h.orig 2008-01-18 22:17:18.000000000 +0900
857 +++ include/filter.h 2009-08-21 09:21:56.000000000 +0900
860 +#pragma GCC system_header
864 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
865 --- include/gdiplusbitmap.h.orig 2008-01-18 22:17:46.000000000 +0900
866 +++ include/gdiplusbitmap.h 2009-08-21 09:21:56.000000000 +0900
869 +#pragma GCC system_header
871 /**************************************************************************\
873 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
874 --- include/gdiplusbrush.h.orig 2008-01-18 22:17:46.000000000 +0900
875 +++ include/gdiplusbrush.h 2009-08-21 09:21:56.000000000 +0900
878 +#pragma GCC system_header
880 /**************************************************************************\
882 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
883 --- include/gdiplusenums.h.orig 2008-01-18 22:17:46.000000000 +0900
884 +++ include/gdiplusenums.h 2009-08-21 09:21:56.000000000 +0900
887 #define GDIP_EMFPLUS_RECORD_BASE 0x00004000
888 #define GDIP_WMF_RECORD_BASE 0x00010000
889 -#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE))
890 +#define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((n) | GDIP_WMF_RECORD_BASE)
891 #define GDIP_EMFPLUS_RECORD_TO_WMF(n) ((n) & (~GDIP_WMF_RECORD_BASE))
892 #define GDIP_IS_WMF_RECORDTYPE(n) (((n) & GDIP_WMF_RECORD_BASE) != 0)
894 --- include/gdiplusfont.h.orig 2008-01-18 22:17:46.000000000 +0900
895 +++ include/gdiplusfont.h 2009-08-21 09:21:56.000000000 +0900
898 +#pragma GCC system_header
900 /**************************************************************************\
902 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
903 --- include/gdiplusheaders.h.orig 2008-01-18 22:17:46.000000000 +0900
904 +++ include/gdiplusheaders.h 2008-03-28 21:44:34.907750000 +0900
907 class CachedBitmap : public GdiplusBase
910 + friend class Graphics;
913 CachedBitmap(IN Bitmap *bitmap,
916 UINT GetDownLevelRasterizationLimit() const;
918 - static UINT Metafile::EmfToWmfBits(
919 + static UINT EmfToWmfBits(
920 IN HENHMETAFILE hemf,
923 --- include/gdiplusimageattributes.h.orig 2008-01-18 22:17:46.000000000 +0900
924 +++ include/gdiplusimageattributes.h 2009-08-21 09:21:56.000000000 +0900
927 #ifndef _GDIPLUSIMAGEATTRIBUTES_H
928 #define _GDIPLUSIMAGEATTRIBUTES_H
930 +#pragma GCC system_header
933 class GpImageAttributes;
935 --- include/gdiplusimaging.h.orig 2008-01-18 22:17:46.000000000 +0900
936 +++ include/gdiplusimaging.h 2009-08-21 09:21:56.000000000 +0900
941 - PixelFormat PixelFormat;
942 + ::Gdiplus::PixelFormat PixelFormat;
946 --- include/gdiplusmatrix.h.orig 2008-01-18 22:17:46.000000000 +0900
947 +++ include/gdiplusmatrix.h 2009-08-21 09:21:56.000000000 +0900
950 +#pragma GCC system_header
952 /**************************************************************************\
954 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
955 --- include/gdipluspath.h.orig 2008-01-18 22:17:46.000000000 +0900
956 +++ include/gdipluspath.h 2009-08-21 09:21:56.000000000 +0900
959 +#pragma GCC system_header
961 /**************************************************************************\
963 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
964 --- include/gdipluspen.h.orig 2008-01-18 22:17:46.000000000 +0900
965 +++ include/gdipluspen.h 2009-08-21 09:21:56.000000000 +0900
968 +#pragma GCC system_header
970 /**************************************************************************\
972 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
973 --- include/gdiplusregion.h.orig 2008-01-18 22:17:46.000000000 +0900
974 +++ include/gdiplusregion.h 2009-08-21 09:21:56.000000000 +0900
977 +#pragma GCC system_header
979 /**************************************************************************\
981 * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved.
982 --- include/gdiplusstringformat.h.orig 2008-01-18 22:17:46.000000000 +0900
983 +++ include/gdiplusstringformat.h 2009-08-21 09:21:56.000000000 +0900
988 - StringTrimming StringFormat::GetTrimming() const
989 + StringTrimming GetTrimming() const
991 StringTrimming trimming;
992 SetStatus(DllExports::GdipGetStringFormatTrimming(
993 --- include/imm.h.orig 2008-01-18 22:17:20.000000000 +0900
994 +++ include/imm.h 2009-08-21 09:21:56.000000000 +0900
1002 +#define __inline inline
1004 +#define __inline static __inline__
1019 --- include/imagehlp.h.orig 2008-01-18 22:17:20.000000000 +0900
1020 +++ include/imagehlp.h 2009-08-21 09:21:56.000000000 +0900
1023 +#pragma GCC system_header
1025 /*++ BUILD Version: 0000 Increment this if a change has global effects
1027 Copyright (c) Microsoft Corporation. All rights reserved.
1029 #include <wintrust.h>
1035 +#define __inline inline
1037 +#define __inline static __inline__
1045 __in HANDLE FileHandle,
1046 - __in_opt PSYSTEMTIME pSystemTime
1047 + __in_opt LPSYSTEMTIME pSystemTime
1051 @@ -3950,7 +3960,7 @@
1052 // ThreadId must be 4 bytes on all architectures.
1055 -C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1056 +//C_ASSERT (sizeof ( ((PPROCESS_INFORMATION)0)->dwThreadId ) == 4);
1058 typedef struct _MINIDUMP_THREAD {
1060 @@ -4684,5 +4694,9 @@
1068 #endif // _IMAGEHLP_
1070 --- include/mapiwin.h.orig 2008-01-18 22:17:22.000000000 +0900
1071 +++ include/mapiwin.h 2009-08-21 09:21:56.000000000 +0900
1075 #endif /* __MAPIWIN_H__ */
1079 --- include/msdasc.h.orig 2008-01-18 22:17:26.000000000 +0900
1080 +++ include/msdasc.h 2009-08-21 09:21:56.000000000 +0900
1083 +#pragma GCC system_header
1087 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1088 --- include/msi.h.orig 2008-01-18 22:17:28.000000000 +0900
1089 +++ include/msi.h 2009-08-21 09:21:56.000000000 +0900
1091 #endif // _MSI_NO_CRYPTO
1092 #endif //(_WIN32_MSI >= 150)
1097 +#define __inline inline
1099 +#define __inline static __inline__
1102 // --------------------------------------------------------------------------
1103 // Installer generic handle definitions
1104 // --------------------------------------------------------------------------
1105 @@ -2248,5 +2256,9 @@
1115 --- include/msiquery.h.orig 2008-01-18 22:17:28.000000000 +0900
1116 +++ include/msiquery.h 2009-08-21 09:21:56.000000000 +0900
1118 #define _MSIQUERY_H_
1119 #include "msi.h" // INSTALLSTATE
1124 +#define __inline inline
1126 +#define __inline static __inline__
1129 #define MSI_NULL_INTEGER 0x80000000 // integer value reserved for null
1131 // MsiOpenDatabase persist predefine values, otherwise output database path is used
1132 @@ -1026,5 +1034,9 @@
1140 #endif // _MSIQUERY_H_
1142 --- include/multimon.h.orig 2008-01-18 22:17:30.000000000 +0900
1143 +++ include/multimon.h 2009-08-21 09:21:56.000000000 +0900
1148 - OSVERSIONINFOA osvi = {0};
1149 + OSVERSIONINFOA osvi;
1150 osvi.dwOSVersionInfoSize = sizeof(osvi);
1151 GetVersionExA((OSVERSIONINFOA*)&osvi);
1152 return (VER_PLATFORM_WIN32_NT == osvi.dwPlatformId);
1153 --- include/ntquery.h.orig 2008-01-18 22:17:30.000000000 +0900
1154 +++ include/ntquery.h 2009-02-16 21:34:39.065125000 +0900
1157 +#pragma GCC system_header
1159 //+---------------------------------------------------------------------------
1161 // Microsoft Windows
1164 #include "stgprop.h"
1169 +#define __inline inline
1171 +#define __inline static __inline__
1174 #if defined(__cplusplus)
1177 @@ -404,6 +415,10 @@
1185 #endif // __NTQUERY_H__
1188 --- include/oaidl.h.orig 2008-12-06 11:32:03.000000000 +0900
1189 +++ include/oaidl.h 2010-02-27 13:28:29.448250000 +0900
1192 +#pragma GCC system_header
1196 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1200 VARIANT_BOOL boolVal;
1201 - _VARIANT_BOOL bool;
1202 +// _VARIANT_BOOL bool;
1206 --- include/ocidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1207 +++ include/ocidl.h 2009-08-21 09:21:56.000000000 +0900
1210 +#pragma GCC system_header
1214 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1215 @@ -294,6 +297,14 @@
1216 #include "servprov.h"
1222 +#define __inline inline
1224 +#define __inline static __inline__
1230 @@ -4595,11 +4606,13 @@
1235 typedef /* [v1_enum] */
1237 { DVASPECT_OPAQUE = 16,
1238 DVASPECT_TRANSPARENT = 32
1242 typedef struct tagExtentInfo
1244 @@ -6554,6 +6567,10 @@
1255 --- include/oleauto.h.orig 2008-01-18 22:17:32.000000000 +0900
1256 +++ include/oleauto.h 2009-08-21 09:21:56.000000000 +0900
1258 /* pull in the MIDL generated header */
1264 +#define __inline inline
1266 +#define __inline static __inline__
1270 /*---------------------------------------------------------------------*/
1272 @@ -1160,7 +1168,7 @@
1274 // Declare variant access functions.
1276 -#if __STDC__ || defined(NONAMELESSUNION)
1277 +#ifdef NONAMELESSUNION
1278 #define V_UNION(X, Y) ((X)->n1.n2.n3.Y)
1279 #define V_VT(X) ((X)->n1.n2.vt)
1280 #define V_RECORDINFO(X) ((X)->n1.n2.n3.brecVal.pRecInfo)
1281 @@ -1242,5 +1250,9 @@
1282 #include <poppack.h>
1283 #endif // RC_INVOKED
1289 #endif // __OLEAUTO_H__
1291 --- include/olectl.h.orig 2008-01-18 22:17:32.000000000 +0900
1292 +++ include/olectl.h 2009-08-21 09:21:56.000000000 +0900
1300 +#define __inline inline
1302 +#define __inline static __inline__
1306 #define WINOLECTLAPI STDAPI
1307 #define WINOLECTLAPI_(type) STDAPI_(type)
1310 #endif // defined(__MKTYPLIB__) || defined(__midl)
1316 #endif // _OLECTL_H_
1318 --- include/oledb.h.orig 2008-01-18 22:17:32.000000000 +0900
1319 +++ include/oledb.h 2009-08-21 09:21:56.000000000 +0900
1322 +#pragma GCC system_header
1326 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1330 #if( OLEDBVER >= 0x0200 )
1331 -#if !defined(_WINBASE_) && !defined(_FILETIME_)
1332 +#if !defined(_WINBASE_H) && !defined(_FILETIME_)
1334 typedef struct _FILETIME {
1335 DWORD dwLowDateTime;
1336 --- include/oleidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1337 +++ include/oleidl.h 2009-08-21 09:21:56.000000000 +0900
1340 +#pragma GCC system_header
1344 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1345 @@ -189,6 +192,14 @@
1346 /* header files for imported files */
1352 +#define __inline inline
1354 +#define __inline static __inline__
1360 @@ -3868,6 +3879,10 @@
1371 --- include/propidl.h.orig 2008-01-18 22:17:32.000000000 +0900
1372 +++ include/propidl.h 2010-02-27 14:11:52.213875000 +0900
1375 +#pragma GCC system_header
1379 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1387 +#define __inline inline
1389 +#define __inline static __inline__
1400 typedef struct tagCAUB
1411 // This is the PROPVARIANT padding layout for marshaling.
1412 typedef BYTE PROPVAR_PAD1;
1416 #endif /* _MSC_EXTENSIONS */
1420 // This is the LPPROPVARIANT definition for marshaling.
1423 #define PRSPEC_PROPID ( 1 )
1426 typedef struct tagPROPSPEC
1429 @@ -526,12 +542,14 @@
1435 // Macros for parsing the OS Version of the Property Set Header
1436 #define PROPSETHDR_OSVER_KIND(dwOSVer) HIWORD( (dwOSVer) )
1437 #define PROPSETHDR_OSVER_MAJOR(dwOSVer) LOBYTE(LOWORD( (dwOSVer) ))
1438 #define PROPSETHDR_OSVER_MINOR(dwOSVer) HIBYTE(LOWORD( (dwOSVer) ))
1439 #define PROPSETHDR_OSVERSION_UNKNOWN 0xFFFFFFFF
1441 typedef struct tagSTATPROPSETSTG
1444 @@ -542,12 +560,14 @@
1452 extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0000_v0_0_c_ifspec;
1453 extern RPC_IF_HANDLE __MIDL_itf_propidl_0000_0000_v0_0_s_ifspec;
1456 #ifndef __IPropertyStorage_INTERFACE_DEFINED__
1457 #define __IPropertyStorage_INTERFACE_DEFINED__
1459 @@ -1119,7 +1139,6 @@
1460 #endif /* C style interface */
1464 /* [call_as] */ HRESULT STDMETHODCALLTYPE IEnumSTATPROPSETSTG_RemoteNext_Proxy(
1465 IEnumSTATPROPSETSTG * This,
1466 /* [in] */ ULONG celt,
1467 @@ -1136,6 +1155,7 @@
1470 #endif /* __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ */
1474 /* interface __MIDL_itf_propidl_0000_0004 */
1475 @@ -1268,6 +1287,10 @@
1486 --- include/propkeydef.h.orig 2008-01-18 22:17:32.000000000 +0900
1487 +++ include/propkeydef.h 2009-08-21 09:21:56.000000000 +0900
1489 #define PID_FIRST_USABLE 2
1492 +#ifndef __MIDL_CONST
1493 +#define __MIDL_CONST const
1496 #ifndef REFPROPERTYKEY
1498 #define REFPROPERTYKEY const PROPERTYKEY &
1499 --- include/propsys.h.orig 2008-01-18 22:17:34.000000000 +0900
1500 +++ include/propsys.h 2009-08-21 09:21:56.000000000 +0900
1501 @@ -228,6 +228,14 @@
1503 #include <propkeydef.h>
1508 +#define __inline inline
1510 +#define __inline static __inline__
1514 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_c_ifspec;
1515 extern RPC_IF_HANDLE __MIDL_itf_propsys_0000_0000_v0_0_s_ifspec;
1516 @@ -3600,6 +3608,10 @@
1527 --- include/propvarutil.h.orig 2008-01-18 22:17:34.000000000 +0900
1528 +++ include/propvarutil.h 2010-02-26 19:34:40.863625000 +0900
1530 #include <shtypes.h>
1531 #include <shlwapi.h>
1536 +#define __inline inline
1538 +#define __inline static __inline__
1542 #if defined(_PROPSYS_)
1543 #define PSSTDAPI STDAPI
1544 --- include/shlobj.h.orig 2008-01-18 22:17:36.000000000 +0900
1545 +++ include/shlobj.h 2009-08-21 09:21:56.000000000 +0900
1548 +#pragma GCC system_header
1550 /*===========================================================================
1552 Copyright (c) Microsoft Corporation. All rights reserved.
1553 @@ -103,6 +106,14 @@
1554 #include <shtypes.h>
1555 #include <shobjidl.h>
1560 +#define __inline inline
1562 +#define __inline static __inline__
1565 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
1568 @@ -3117,7 +3128,7 @@
1569 SHSTDAPI_(BOOL) ILIsEqual(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2);
1570 SHSTDAPI_(BOOL) ILIsParent(__in PCIDLIST_ABSOLUTE pidl1, __in PCIDLIST_ABSOLUTE pidl2, BOOL fImmediate);
1571 SHSTDAPI ILSaveToStream(__in IStream *pstm, __in PCUIDLIST_RELATIVE pidl);
1572 -DECLSPEC_DEPRECATED SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
1573 +SHSTDAPI ILLoadFromStream(__in IStream *pstm, __inout PIDLIST_RELATIVE *pidl);
1574 SHSTDAPI ILLoadFromStreamEx(__in IStream *pstm, __deref_out PIDLIST_RELATIVE *pidl);
1576 #if (_WIN32_IE >= 0x0400)
1577 @@ -4578,5 +4589,9 @@
1585 #endif /* _SHLOBJ_H_ */
1587 --- include/shobjidl.h.orig 2008-01-18 22:17:36.000000000 +0900
1588 +++ include/shobjidl.h 2009-08-21 09:21:56.000000000 +0900
1591 +#pragma GCC system_header
1595 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1596 @@ -1667,6 +1670,14 @@
1598 #include "propsys.h"
1603 +#define __inline inline
1605 +#define __inline static __inline__
1611 @@ -6384,7 +6395,6 @@
1613 typedef ICommDlgBrowser2 *LPCOMMDLGBROWSER2;
1615 -#endif // NTDDI_WIN2K
1616 #if (_WIN32_IE >= _WIN32_IE_IE70)
1619 @@ -6727,6 +6737,7 @@
1622 #endif // (_WIN32_IE >= _WIN32_IE_IE70)
1623 +#endif // NTDDI_WIN2K
1626 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0026_v0_0_c_ifspec;
1627 @@ -7331,6 +7342,13 @@
1628 typedef LPTBBUTTON LPTBBUTTONSB;
1634 +#define __inline inline
1636 +#define __inline static __inline__
1639 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_c_ifspec;
1640 extern RPC_IF_HANDLE __MIDL_itf_shobjidl_0000_0032_v0_0_s_ifspec;
1641 @@ -29000,6 +29018,10 @@
1652 --- include/shtypes.h.orig 2008-01-18 22:17:36.000000000 +0900
1653 +++ include/shtypes.h 2009-08-21 09:21:56.000000000 +0900
1656 +#pragma GCC system_header
1660 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1663 #endif // defined(STRICT_TYPED_ITEMIDS) && defined(__cplusplus)
1664 #include <poppack.h>
1665 -typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
1666 +//typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *wirePIDL;
1668 typedef /* [wire_marshal] */ ITEMIDLIST __unaligned *LPITEMIDLIST;
1670 --- include/sspi.h.orig 2008-01-18 22:17:38.000000000 +0900
1671 +++ include/sspi.h 2009-08-21 09:21:56.000000000 +0900
1679 +#define __inline inline
1681 +#define __inline static __inline__
1687 @@ -2154,8 +2162,7 @@
1691 -#ifndef _AUTH_IDENTITY_DEFINED
1692 -#define _AUTH_IDENTITY_DEFINED
1693 +#ifndef SEC_WINNT_AUTH_IDENTITY_ANSI
1696 // This was not defined in NTIFS.h for windows 2000 however
1697 @@ -2326,6 +2333,10 @@
1706 #endif // __SSPI_H__
1708 --- include/strmif.h.orig 2008-01-18 22:17:38.000000000 +0900
1709 +++ include/strmif.h 2009-02-16 21:34:39.065125000 +0900
1712 +#pragma GCC system_header
1716 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1717 @@ -888,6 +891,14 @@
1724 +#define __inline inline
1726 +#define __inline static __inline__
1732 @@ -16250,7 +16261,7 @@
1733 #define _IAMFilterGraphCallback_
1734 // Note: Because this interface was not defined as a proper interface it is
1735 // supported under C++ only. Methods aren't stdcall.
1736 -EXTERN_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
1737 +DEFINE_GUID(IID_IAMFilterGraphCallback,0x56a868fd,0x0ad4,0x11ce,0xb0,0xa3,0x0,0x20,0xaf,0x0b,0xa7,0x70);
1738 interface IAMFilterGraphCallback : public IUnknown
1740 // S_OK means rendering complete, S_FALSE means retry now.
1741 @@ -21934,7 +21945,7 @@
1742 typedef struct tagVMRGUID
1749 typedef struct tagVMRMONITORINFO
1750 @@ -23341,6 +23352,10 @@
1761 --- include/strsafe.h.orig 2008-01-18 22:17:38.000000000 +0900
1762 +++ include/strsafe.h 2009-02-16 21:34:39.065125000 +0900
1764 #if (_MSC_VER > 1000)
1768 +#pragma GCC system_header
1771 #include <stdio.h> // for _vsnprintf, _vsnwprintf, getc, getwc
1772 #include <string.h> // for memset
1773 #include <stdarg.h> // for va_start, etc.
1774 #include <specstrings.h> // for __in, etc.
1779 +#define __inline inline
1781 +#define __inline static __inline__
1785 #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && (_MSC_VER >= 1300)
1787 @@ -9254,7 +9265,7 @@
1788 wchar_t ch = getwc(stdin);
1789 // ASSERT(sizeof(wchar_t) == sizeof(wint_t));
1794 if (cchNewDestLength == 0)
1796 @@ -9763,5 +9774,9 @@
1798 #pragma warning(pop)
1804 #endif // _STRSAFE_H_INCLUDED_
1806 --- include/structuredquery.h.orig 2008-01-18 22:17:38.000000000 +0900
1807 +++ include/structuredquery.h 2009-08-21 09:21:56.000000000 +0900
1808 @@ -233,6 +233,14 @@
1810 #include "propidl.h"
1815 +#define __inline inline
1817 +#define __inline static __inline__
1823 @@ -2472,6 +2480,10 @@
1834 --- include/urlmon.h.orig 2008-01-18 22:17:40.000000000 +0900
1835 +++ include/urlmon.h 2009-08-21 09:21:56.000000000 +0900
1838 +#pragma GCC system_header
1842 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
1843 @@ -330,6 +333,14 @@
1844 #include "servprov.h"
1850 +#define __inline inline
1852 +#define __inline static __inline__
1858 @@ -8880,6 +8891,10 @@
1869 --- include/wincrypt.h.orig 2008-01-18 22:17:42.000000000 +0900
1870 +++ include/wincrypt.h 2009-02-16 21:34:39.065125000 +0900
1873 #include <specstrings.h> /* for SAL annotations */
1878 +#define __inline inline
1880 +#define __inline static __inline__
1883 #if defined (_MSC_VER)
1885 #if ( _MSC_VER >= 800 )
1886 @@ -1927,6 +1935,14 @@
1893 +#define __inline inline
1895 +#define __inline static __inline__
1898 // This type is used when the API can take either the CAPI1 HCRYPTPROV or
1899 // the CNG NCRYPT_KEY_HANDLE. Where appropriate, the HCRYPTPROV will be
1900 // converted to a NCRYPT_KEY_HANDLE via the CNG NCryptTranslateHandle().
1901 @@ -17113,8 +17129,8 @@
1903 __in_opt PCRYPT_KEY_PROV_INFO pKeyProvInfo,
1904 __in_opt PCRYPT_ALGORITHM_IDENTIFIER pSignatureAlgorithm,
1905 - __in_opt PSYSTEMTIME pStartTime,
1906 - __in_opt PSYSTEMTIME pEndTime,
1907 + __in_opt LPSYSTEMTIME pStartTime,
1908 + __in_opt LPSYSTEMTIME pEndTime,
1909 __in_opt PCERT_EXTENSIONS pExtensions
1912 @@ -19174,6 +19190,10 @@
1920 #endif // __WINCRYPT_H__
1923 --- include/winerror.h.orig 2008-01-18 22:17:42.000000000 +0900
1924 +++ include/winerror.h 2009-08-21 09:21:56.000000000 +0900
1927 #include <specstrings.h>
1930 +#define __inline inline
1932 +#define __inline static __inline__
1935 // Values are 32 bit values laid out as follows:
1937 --- include/wingdi.h.orig 2008-01-18 22:17:42.000000000 +0900
1938 +++ include/wingdi.h 2009-08-21 09:21:56.000000000 +0900
1946 +#define __inline inline
1948 +#define __inline static __inline__
1953 @@ -1901,7 +1908,7 @@
1954 /* size of a form name string */
1955 #define CCHFORMNAME 32
1957 -#if (_WIN32_WINNT >= ((OSVER(NTDDI_WINXPSP2)) >> 16))
1958 +#if (_WIN32_WINNT >= ((NTDDI_WINXPSP2 & 0xFFFF0000) >> 16))
1959 typedef struct _devicemodeA {
1960 BYTE dmDeviceName[CCHDEVICENAME];
1962 @@ -5424,6 +5431,10 @@
1970 #endif /* _WINGDI_ */
1973 --- include/wintrust.h.orig 2008-01-18 22:17:42.000000000 +0900
1974 +++ include/wintrust.h 2009-08-21 09:21:56.000000000 +0900
1975 @@ -1252,6 +1252,7 @@
1977 #ifdef WT_DEFINE_ALL_APIS
1980 typedef struct _WIN_CERTIFICATE
1983 @@ -1260,6 +1261,7 @@
1984 BYTE bCertificate[ANYSIZE_ARRAY];
1986 } WIN_CERTIFICATE, *LPWIN_CERTIFICATE;
1989 #define WIN_CERT_REVISION_1_0 (0x0100)
1990 #define WIN_CERT_REVISION_2_0 (0x0200)
1991 --- include/winuser.h.orig 2008-01-18 22:17:44.000000000 +0900
1992 +++ include/winuser.h 2009-08-21 09:21:56.000000000 +0900
2000 +#define __inline inline
2002 +#define __inline static __inline__
2004 +DECLARE_HANDLE(HHOOK);
2005 +typedef CONST GUID *LPCGUID;
2010 #define WINVER 0x0500 /* version 5.0 */
2011 #endif /* !WINVER */
2013 -#include <stdarg.h>
2014 +#include <../include/stdarg.h>
2018 @@ -10717,7 +10726,7 @@
2019 #define CDS_RESET 0x40000000
2020 #define CDS_NORESET 0x10000000
2023 +//#include <tvout.h>
2025 /* Return values for ChangeDisplaySettings */
2026 #define DISP_CHANGE_SUCCESSFUL 0
2027 @@ -12571,16 +12580,20 @@
2031 -#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2032 -#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2033 -#include "winuser.inl"
2034 -#endif /* ISOLATION_AWARE_ENABLED */
2036 +//#if !defined(RC_INVOKED) /* RC complains about long symbols in #ifs */
2037 +//#if defined(ISOLATION_AWARE_ENABLED) && (ISOLATION_AWARE_ENABLED != 0)
2038 +//#include "winuser.inl"
2039 +//#endif /* ISOLATION_AWARE_ENABLED */
2044 #endif /* __cplusplus */
2050 #endif /* !_WINUSER_ */
2053 --- include/wspiapi.h.orig 2008-01-18 22:17:44.000000000 +0900
2054 +++ include/wspiapi.h 2009-08-21 09:21:56.000000000 +0900
2060 +#pragma GCC system_header
2069 +#define _inline inline
2070 +#define __inline inline
2072 +#define _inline static __inline__
2073 +#define __inline static __inline__
2076 ////////////////////////////////////////////////////////////
2077 @@ -1052,6 +1060,8 @@
2078 (*pfFreeAddrInfo)(ai);
2086 --- include/d3dtypes.h.orig 2004-09-27 12:34:16.000000000 +0900
2087 +++ include/d3dtypes.h 2007-11-30 21:42:09.558750000 +0900
2090 +#pragma GCC system_header
2092 /*==========================================================================;
2094 * Copyright (C) Microsoft Corporation. All Rights Reserved.
2095 --- include/d3dx9core.h.orig 2006-03-31 12:16:02.000000000 +0900
2096 +++ include/d3dx9core.h 2009-08-21 09:21:56.000000000 +0900
2099 +#pragma GCC system_header
2101 ///////////////////////////////////////////////////////////////////////////
2103 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2104 --- include/d3dx9math.h.orig 2005-07-22 17:00:18.000000000 +0900
2105 +++ include/d3dx9math.h 2009-08-21 09:21:56.000000000 +0900
2108 +#pragma GCC system_header
2110 //////////////////////////////////////////////////////////////////////////////
2112 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2113 --- include/d3dx9math.inl.orig 2005-03-18 17:26:56.000000000 +0900
2114 +++ include/d3dx9math.inl 2009-08-21 09:21:56.000000000 +0900
2117 +#pragma GCC system_header
2119 //////////////////////////////////////////////////////////////////////////////
2121 // Copyright (C) Microsoft Corporation. All Rights Reserved.
2122 --- include/dxtrans.h.orig 2004-09-28 00:18:32.000000000 +0900
2123 +++ include/dxtrans.h 2007-01-02 22:08:41.640625000 +0900
2126 +#pragma GCC system_header
2129 #pragma warning( disable: 4049 ) /* more than 64k source lines */