+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++.
inline void (*signal_adapter (signal_handler_type
(*signal_func)(signal_number_type,
signal_handler_type),
- signal_number_type arg,
- void (*handler)(int)))(int)
+ signal_number_type arg,
+ void (*handler)(int)))(int)
+{
+ 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);
}