2007-02-18 Jiri Malak <jiri.malak@iol.cz>

* include/windef.h [WATCOM]: Fix !NONAMELESSUNION defines.
	* include/winnt.h [WATCOM] (GetCurrentFiber, GetFiberData):
	Add prototypes.
	[WATCOM] (NtCurrentTeb): Add protype and inline asm definition.

2007-02-18  Vesa Jskelinen  <chaac@users.sourveforge.net>

	* lib/user32.def (InternalGetWindowText): Add stub.
This commit is contained in:
Danny Smith 2007-02-18 08:08:12 +00:00
parent ee7d4af092
commit 6542214e59
4 changed files with 23 additions and 4 deletions

View file

@ -1,3 +1,14 @@
2007-02-18 Jiri Malak <jiri.malak@iol.cz>
* include/windef.h [WATCOM]: Fix !NONAMELESSUNION defines.
* include/winnt.h [WATCOM] (GetCurrentFiber, GetFiberData):
Add prototypes.
[WATCOM] (NtCurrentTeb): Add protype and inline asm definition.
2007-02-18 Vesa Jskelinen <chaac@users.sourveforge.net>
* lib/user32.def (InternalGetWindowText): Add stub.
2007-02-11 Daniel Atallah <datallah@users.sourceforge.net>
* include/winnt.h (LANG_SERBIAN_NEUTRAL, LANG_BOSNIAN,

View file

@ -156,8 +156,8 @@ extern "C" {
#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 @@ extern "C" {
#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
@ -279,12 +279,11 @@ DECLARE_HANDLE(HFONT);
DECLARE_HANDLE(HICON);
DECLARE_HANDLE(HKEY);
/* FIXME: How to handle these. SM_CMONITORS etc in winuser.h also. */
/* #if (WINVER >= 0x0500) */
DECLARE_HANDLE(HMONITOR);
#define HMONITOR_DECLARED 1
DECLARE_HANDLE(HTERMINAL);
DECLARE_HANDLE(HWINEVENTHOOK);
/* #endif */
typedef HKEY *PHKEY;
DECLARE_HANDLE(HMENU);
DECLARE_HANDLE(HMETAFILE);

View file

@ -3897,16 +3897,24 @@ static __inline__ struct _TEB * NtCurrentTeb(void)
#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_ */

View file

@ -366,6 +366,7 @@ InsertMenuA@20
InsertMenuItemA@16
InsertMenuItemW@16
InsertMenuW@20
InternalGetWindowText@12
IntersectRect@12
InvalidateRect@12
InvalidateRgn@12