diff options
author | Eric Blake <eblake@redhat.com> | 2008-07-12 18:09:17 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2008-07-12 18:09:17 +0000 |
commit | 25dab6dc60abf8e526d47ea9770de2e655868d60 (patch) | |
tree | 385558a673caa6ff06540497b887cde7c9d0387b /winsup/cygwin/winbase.h | |
parent | 5423479e3fd284d928ced92cd07f4d590243f88f (diff) | |
download | newlib-25dab6dc60abf8e526d47ea9770de2e655868d60.zip newlib-25dab6dc60abf8e526d47ea9770de2e655868d60.tar.gz newlib-25dab6dc60abf8e526d47ea9770de2e655868d60.tar.bz2 |
Fix usage of recently fixed Interlocked* functions.
* winbase.h (ilockincr, ilockdecr, ilockexch, ilockcmpexch): Add
volatile qualifier, to match Interlocked* functions.
Diffstat (limited to 'winsup/cygwin/winbase.h')
-rw-r--r-- | winsup/cygwin/winbase.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/winbase.h b/winsup/cygwin/winbase.h index 8e2ea99..18f0be3 100644 --- a/winsup/cygwin/winbase.h +++ b/winsup/cygwin/winbase.h @@ -1,6 +1,6 @@ /* winbase.h - Copyright 2002, 2003, 2004 Red Hat, Inc. + Copyright 2002, 2003, 2004, 2008 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -12,7 +12,7 @@ details. */ #define _WINBASE2_H extern __inline__ long -ilockincr (long *m) +ilockincr (volatile long *m) { register int __res; __asm__ __volatile__ ("\n\ @@ -24,7 +24,7 @@ ilockincr (long *m) } extern __inline__ long -ilockdecr (long *m) +ilockdecr (volatile long *m) { register int __res; __asm__ __volatile__ ("\n\ @@ -36,7 +36,7 @@ ilockdecr (long *m) } extern __inline__ long -ilockexch (long *t, long v) +ilockexch (volatile long *t, long v) { register int __res; __asm__ __volatile__ ("\n\ @@ -47,7 +47,7 @@ ilockexch (long *t, long v) } extern __inline__ long -ilockcmpexch (long *t, long v, long c) +ilockcmpexch (volatile long *t, long v, long c) { register int __res; __asm__ __volatile__ ("\n\ |