aboutsummaryrefslogtreecommitdiff
path: root/winsup/w32api/include/winnt.h
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2001-04-08 16:53:56 +0000
committerEarnie Boyd <earnie@users.sf.net>2001-04-08 16:53:56 +0000
commita1a1b83adfea375e1ff2e0c4be329f8e14a7340a (patch)
tree176cd9543546e837fbb7fe954023a21dd64cbec8 /winsup/w32api/include/winnt.h
parent9ddfe5a04a1544bdceadc4f3b0256b21698bca9a (diff)
downloadnewlib-a1a1b83adfea375e1ff2e0c4be329f8e14a7340a.zip
newlib-a1a1b83adfea375e1ff2e0c4be329f8e14a7340a.tar.gz
newlib-a1a1b83adfea375e1ff2e0c4be329f8e14a7340a.tar.bz2
* include/shellapi.h: (CommandLineToArgvW): Add WINAPI declaration.
* include/winbase.h: (GetFileAttributesExW): Fix typo. * include/wingdi.h: (StartDocA): Change LPDOCINFOA to DOCINFOA*. (StartDocB): Chage LNPDOCINFOB to DOCINFOB*. Thanks To: Kent Tamura <tkent@users.sourceforge.net> * include/winnt.h: (GetFiberData): Add __inline assembler coding. (GetCurrentFiber): Ditto. Thanks to: Andy Younger <AndyY@redlemon.com> * include/windef.h: (HMONITOR_DECLARED): New definition to stop DirectX 8 from complaining. Thanks to: Sigbj�rn Lund Olsen <mosikos@online.no> * include/commctrl.h Updated TreeView and ListView defines and macros. * include/winuser.h (MB_SERVICE_NOTIFICATION): Correct value for NT4 and above.
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r--winsup/w32api/include/winnt.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index 5960046..ed25f06 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -2499,8 +2499,27 @@ typedef struct _REPARSE_POINT_INFORMATION {
WORD ReparseDataLength;
WORD UnparsedNameLength;
} REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
-PVOID GetCurrentFiber(void);
-PVOID GetFiberData(void);
+__inline PVOID GetCurrentFiber(void)
+{
+ void* ret;
+ __asm__ volatile ("
+ movl %%fs:0x10,%0
+ movl (%0),%0
+ " : "=r" (ret) /* allow use of reg eax, ebx, ecx, edx, esi, edi */
+ :
+ );
+ return ret;
+}
+__inline PVOID GetFiberData(void)
+{
+ void* ret;
+ __asm__ volatile ("
+ movl %%fs:0x10,%0
+ " : "-r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
+ :
+ );
+ return ret;
+}
#endif
#ifdef __cplusplus
}