summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/w32api/ChangeLog7
-rw-r--r--winsup/w32api/include/winnt.h7
2 files changed, 9 insertions, 5 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index c4a02e716..7f2113f3e 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-01 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/winnt.h (GetCurrentFiber): Remove duplicate prototype.
+ (GetFiberData); Likewise.
+ (GetCurrentFiber): Change volatile to __volatile__.
+ (GetFiberData); Likewise.
+
2003-11-27 Christopher Faylor <cgf@redhat.com>
* lib/Makefile.in: Use make function to locate .mri file to allow
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h
index 17bfeb90b..683d01027 100644
--- a/winsup/w32api/include/winnt.h
+++ b/winsup/w32api/include/winnt.h
@@ -3281,13 +3281,10 @@ ULONGLONG WINAPI VerSetConditionMask(ULONGLONG,DWORD,BYTE);
#if defined(__GNUC__)
PVOID GetCurrentFiber(void);
-PVOID GetFiberData(void);
-
-PVOID GetCurrentFiber(void);
extern __inline__ PVOID GetCurrentFiber(void)
{
void* ret;
- __asm__ volatile (
+ __asm__ __volatile__ (
"movl %%fs:0x10,%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
);
@@ -3298,7 +3295,7 @@ PVOID GetFiberData(void);
extern __inline__ PVOID GetFiberData(void)
{
void* ret;
- __asm__ volatile (
+ __asm__ __volatile__ (
"movl %%fs:0x10,%0\n"
"movl (%0),%0"
: "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */