[GIT] ppl/ppl(master): Use the right preprocessor conditionals for PPL_HAVE_DECL_SIGACTION.

Module: ppl/ppl Branch: master Commit: 9ba82c5fb51ff9f63818fa8c6f006a1900a70894 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=9ba82c5fb51ff...
Author: Roberto Bagnara bagnara@cs.unipr.it Date: Tue Feb 16 21:35:54 2010 +0100
Use the right preprocessor conditionals for PPL_HAVE_DECL_SIGACTION.
---
Watchdog/tests/pwl_test.cc | 8 ++++---- tests/ppl_test.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Watchdog/tests/pwl_test.cc b/Watchdog/tests/pwl_test.cc index 4100e5b..94d4c3b 100644 --- a/Watchdog/tests/pwl_test.cc +++ b/Watchdog/tests/pwl_test.cc @@ -43,7 +43,7 @@ uncaught_exception_handler() { exit(1); }
-#ifdef PWL_HAVE_DECL_SIGACTION +#if PWL_HAVE_DECL_SIGACTION
#if defined(PWL_HAVE_SIGINFO_T) && defined(SA_SIGINFO)
@@ -157,7 +157,7 @@ fpe_handler(int sig) {
#endif // !defined(PWL_HAVE_SIGINFO_T) || !defined(SA_SIGINFO)
-#endif // defined(PWL_HAVE_DECL_SIGACTION) +#endif // PWL_HAVE_DECL_SIGACTION
} // namespace
@@ -167,7 +167,7 @@ namespace Test {
void set_handlers() { -#ifdef PWL_HAVE_DECL_SIGACTION +#if PWL_HAVE_DECL_SIGACTION struct sigaction action; sigemptyset(&action.sa_mask); #if defined(PWL_HAVE_SIGINFO_T) && defined(SA_SIGINFO) @@ -182,7 +182,7 @@ set_handlers() { << std::endl; abort(); } -#endif // defined(PWL_HAVE_DECL_SIGACTION) +#endif // PWL_HAVE_DECL_SIGACTION
std::set_unexpected(unexpected_exception_handler); std::set_terminate(uncaught_exception_handler); diff --git a/tests/ppl_test.cc b/tests/ppl_test.cc index 9ec9f23..df44e71 100644 --- a/tests/ppl_test.cc +++ b/tests/ppl_test.cc @@ -43,7 +43,7 @@ uncaught_exception_handler() { exit(1); }
-#ifdef PPL_HAVE_DECL_SIGACTION +#if PPL_HAVE_DECL_SIGACTION
#if defined(PPL_HAVE_SIGINFO_T) && defined(SA_SIGINFO)
@@ -157,7 +157,7 @@ fpe_handler(int sig) {
#endif // !defined(PPL_HAVE_SIGINFO_T) || !defined(SA_SIGINFO)
-#endif // defined(PPL_HAVE_DECL_SIGACTION) +#endif // PPL_HAVE_DECL_SIGACTION
} // namespace
@@ -167,7 +167,7 @@ namespace Test {
void set_handlers() { -#ifdef PPL_HAVE_DECL_SIGACTION +#if PPL_HAVE_DECL_SIGACTION struct sigaction action; sigemptyset(&action.sa_mask); #if defined(PPL_HAVE_SIGINFO_T) && defined(SA_SIGINFO) @@ -182,7 +182,7 @@ set_handlers() { << std::endl; abort(); } -#endif // defined(PPL_HAVE_DECL_SIGACTION) +#endif // PPL_HAVE_DECL_SIGACTION
std::set_unexpected(unexpected_exception_handler); std::set_terminate(uncaught_exception_handler);
participants (1)
-
Roberto Bagnara