mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 16:23:56 +08:00
gen-num-limits.cc (signal_adapter): Overloaded to match signal_func with an unspecified argument list.
* src/gen-num-limits.cc (signal_adapter): Overloaded to match signal_func with an unspecified argument list. From-SVN: r40546
This commit is contained in:
parent
110c3568a2
commit
e52ba67a25
@ -1,3 +1,8 @@
|
||||
2001-03-16 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* src/gen-num-limits.cc (signal_adapter): Overloaded to match
|
||||
signal_func with an unspecified argument list.
|
||||
|
||||
2001-03-15 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.
|
||||
|
@ -120,6 +120,14 @@ inline void (*signal_adapter (signal_handler_type
|
||||
return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
|
||||
}
|
||||
|
||||
template <typename signal_handler_type, typename signal_number_type>
|
||||
inline void (*signal_adapter (signal_handler_type (*signal_func)(...),
|
||||
signal_number_type arg,
|
||||
void (*handler)(int)))(int)
|
||||
{
|
||||
return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
|
||||
}
|
||||
|
||||
void signal_handler(int sig)
|
||||
{
|
||||
#ifdef __CYGWIN__
|
||||
|
Loading…
Reference in New Issue
Block a user