summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/winnt.h
diff options
context:
space:
mode:
authorEarnie Boyd <earnie@users.sf.net>2001-08-10 11:51:03 +0000
committerEarnie Boyd <earnie@users.sf.net>2001-08-10 11:51:03 +0000
commit5b9d54bf972e1b9af3833e29dbc89298fcbe5d7b (patch)
tree26e1fc9de081412ac114e0fbf87e99fb96261dc7 /winsup/w32api/include/winnt.h
parentb5c27d80c017c9700811538d72bd282e0924357c (diff)
downloadcygnal-5b9d54bf972e1b9af3833e29dbc89298fcbe5d7b.tar.gz
cygnal-5b9d54bf972e1b9af3833e29dbc89298fcbe5d7b.tar.bz2
cygnal-5b9d54bf972e1b9af3833e29dbc89298fcbe5d7b.zip
* lib/test.c (Win32_Winsock): Replace with __USE_W32_SOCKETS.
Add more includes of w32api headers. * include/winnt.h (GetCurrentFiber): Change __inline to __inline__. Swap asm code with that of GetFiberData. (GetFiberData): Ditto. * lib/kernels.c: New file, containing library versions of GetCurrentFiber and GetFiberData. * lib/makefile.in: Add kernel32.o as static object to libkernal32.a.
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r--winsup/w32api/include/winnt.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index ff11ca385..0fed6db4d 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -2507,27 +2507,29 @@ typedef struct _REPARSE_POINT_INFORMATION {
WORD ReparseDataLength;
WORD UnparsedNameLength;
} REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
-extern __inline PVOID GetCurrentFiber(void)
+extern __inline__ PVOID GetCurrentFiber(void)
{
void* ret;
- __asm__ volatile ("\n\
- movl %%fs:0x10,%0\n\
- movl (%0),%0\n\
- " : "=r" (ret) /* allow use of reg eax, ebx, ecx, edx, esi, edi */
+ __asm__ volatile (
+ "movl %%fs:0x10,%0"
+ : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
:
- );
+ );
return ret;
}
-extern __inline PVOID GetFiberData(void)
+
+extern __inline__ PVOID GetFiberData(void)
{
void* ret;
- __asm__ volatile ("\n\
- movl %%fs:0x10,%0\n\
- " : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
- :
- );
+ __asm__ volatile (
+ "movl %%fs:0x10,%0\n"
+ "movl (%0),%0"
+ : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
+ :
+ );
return ret;
}
+
#endif
#ifdef __cplusplus
}