aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-09 00:52:35 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-09 00:52:35 +0000
commit4c1ce6d3a25123451f0c5d5ef5184fceda26bd06 (patch)
tree528f098fea7d597f7e8a90c7c28743723e2b32f3
parente3eef4d042c7379cb60b796ac4946572c25b13a3 (diff)
downloadnewlib-4c1ce6d3a25123451f0c5d5ef5184fceda26bd06.zip
newlib-4c1ce6d3a25123451f0c5d5ef5184fceda26bd06.tar.gz
newlib-4c1ce6d3a25123451f0c5d5ef5184fceda26bd06.tar.bz2
* include/winnt.h (GetCurrentFiber): Make "external __inline" or asm code will
be included in every module which includes this header. (GetFiberData): Ditto.
-rw-r--r--winsup/w32api/ChangeLog5
-rw-r--r--winsup/w32api/include/winnt.h14
2 files changed, 12 insertions, 7 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 4083ef9..3058304 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,8 @@
+Sun Apr 8 20:48:01 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * include/winnt.h (GetCurrentFiber): Make "external __inline" or asm
+ code will be included in every module which includes this header.
+ (GetFiberData): Ditto.
2001-04-08 Earnie Boyd <earnie@users.sourceforge.net>
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index ba89358..1165426 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -2499,22 +2499,22 @@ typedef struct _REPARSE_POINT_INFORMATION {
WORD ReparseDataLength;
WORD UnparsedNameLength;
} REPARSE_POINT_INFORMATION, *PREPARSE_POINT_INFORMATION;
-__inline PVOID GetCurrentFiber(void)
+extern __inline PVOID GetCurrentFiber(void)
{
void* ret;
- __asm__ volatile ("
- movl %%fs:0x10,%0
- movl (%0),%0
+ __asm__ volatile ("\n\
+ movl %%fs:0x10,%0\n\
+ movl (%0),%0\n\
" : "=r" (ret) /* allow use of reg eax, ebx, ecx, edx, esi, edi */
:
);
return ret;
}
-__inline PVOID GetFiberData(void)
+extern __inline PVOID GetFiberData(void)
{
void* ret;
- __asm__ volatile ("
- movl %%fs:0x10,%0
+ __asm__ volatile ("\n\
+ movl %%fs:0x10,%0\n\
" : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
:
);