[email protected]
"Jiri Malak" <[email protected]> Thu, 15 Feb 2007 18:31:06 +0100
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <002f01c75127$159291d0$0200a8c0@local> |
This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C7512F.74CD8FD0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 7bit I enclosed patch for better porting win32api headers for Open Watcom compilers. It fixes inline assembly code and fix define for anonymouse structures. Regards Jiri Malak 2007-02-15 Jiri Malak <[email protected]> * include/windef.h, winnt.h : fix for Open Watcom compilers. ------=_NextPart_000_002C_01C7512F.74CD8FD0 Content-Type: text/plain; format=flowed; name="w32api-3.8-20070215-jiri.malak-dc0Jyz4cLwQpfFuVJqdT6A@public.gmane.org"; reply-type=original Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="w32api-3.8-20070215-jiri.malak-dc0Jyz4cLwQpfFuVJqdT6A@public.gmane.org" --- windef.h 12 Jun 2006 00:55:06 -0000 1.18 +++ windef.h 15 Feb 2007 16:53:00 -0000 @@ -156,8 +156,8 @@ #define DBG_UNREFERENCED_PARAMETER(P) #define DBG_UNREFERENCED_LOCAL_VARIABLE(L) -#ifdef __GNUC__ #ifndef NONAMELESSUNION +#ifdef __GNUC__ #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) #define _ANONYMOUS_UNION __extension__ #define _ANONYMOUS_STRUCT __extension__ @@ -166,11 +166,11 @@ #define _ANONYMOUS_UNION __extension__ #endif /* __cplusplus */ #endif /* __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) */ -#endif /* NONAMELESSUNION */ #elif defined(__WATCOMC__) #define _ANONYMOUS_UNION #define _ANONYMOUS_STRUCT #endif /* __GNUC__/__WATCOMC__ */ +#endif /* NONAMELESSUNION */ #ifndef _ANONYMOUS_UNION #define _ANONYMOUS_UNION --- winnt.h 11 Feb 2007 14:32:24 -0000 1.115 +++ winnt.h 15 Feb 2007 16:53:12 -0000 @@ -3897,16 +3897,24 @@ #else +PVOID GetCurrentFiber(void); #pragma aux GetCurrentFiber = \ "mov eax, dword ptr fs:0x10" \ value [eax] \ modify [eax]; +PVOID GetFiberData(void); #pragma aux GetFiberData = \ "mov eax, dword ptr fs:0x10" \ "mov eax, [eax]" \ value [eax] \ modify [eax]; + +struct _TEB * NtCurrentTeb(void); +#pragma aux NtCurrentTeb = \ + "mov eax, dword ptr fs:0x18" \ + value [eax] \ + modify [eax]; #endif /* __GNUC__ */ #endif /* _X86_ */ ------=_NextPart_000_002C_01C7512F.74CD8FD0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ------=_NextPart_000_002C_01C7512F.74CD8FD0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ MinGW-patches mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-patches ------=_NextPart_000_002C_01C7512F.74CD8FD0--