aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-04 01:17:57 +0000
committerRoland McGrath <roland@gnu.org>2001-08-04 01:17:57 +0000
commit4ffd4002c7282cfe84f394a93fb5ad082be1820f (patch)
tree966e06b80ca603a1ae89bd7bee1c53173e249659
parent5af3245a41d958c326c02e23473d44bb474602fb (diff)
downloadglibc-4ffd4002c7282cfe84f394a93fb5ad082be1820f.zip
glibc-4ffd4002c7282cfe84f394a93fb5ad082be1820f.tar.gz
glibc-4ffd4002c7282cfe84f394a93fb5ad082be1820f.tar.bz2
2001-07-30 Roland McGrath <roland@frob.com>
* sysdeps/mach/bits/libc-lock.h (__libc_cleanup_region_start): Diddle syntax so both function and pointer-to-function arguments work right.
-rw-r--r--sysdeps/mach/bits/libc-lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/bits/libc-lock.h b/sysdeps/mach/bits/libc-lock.h
index cfb7404..57c36cb 100644
--- a/sysdeps/mach/bits/libc-lock.h
+++ b/sysdeps/mach/bits/libc-lock.h
@@ -1,5 +1,5 @@
/* libc-internal interface for mutex locks. Mach cthreads version.
- Copyright (C) 1996,97,98,2000 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,98,2000,01 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -78,7 +78,7 @@ typedef cthread_key_t __libc_key_t;
/* Start a critical region with a cleanup function */
#define __libc_cleanup_region_start(FCT, ARG) \
{ \
- typeof (FCT) __save_FCT = FCT; \
+ typeof (***(FCT)) *__save_FCT = FCT; \
typeof (ARG) __save_ARG = ARG; \
/* close brace is in __libc_cleanup_region_end below. */