diff options
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r-- | winsup/w32api/include/winnt.h | 26 |
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 } |