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:
Alexandre Oliva 2001-03-16 06:58:58 +00:00 committed by Alexandre Oliva
parent 110c3568a2
commit e52ba67a25
2 changed files with 15 additions and 2 deletions

View File

@ -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++.

View File

@ -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__