From 14e2a91fdf400c861cd38c91c3c973cc609180a8 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 12 May 2011 13:50:44 +0000 Subject: [PATCH] Include config.h (for WS_MSVC_NORETURN) and g_gnuc.h (for G_GNUC_NORETURN) svn path=/trunk/; revision=37077 --- epan/except.h | 1 + epan/exntest.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/epan/except.h b/epan/except.h index 407be9d83c..a6c6f191e7 100644 --- a/epan/except.h +++ b/epan/except.h @@ -36,6 +36,7 @@ #include #include #include +#include #define XCEPT_GROUP_ANY 0 #define XCEPT_CODE_ANY 0 diff --git a/epan/exntest.c b/epan/exntest.c index 3d6b63b385..ef5094d3cb 100644 --- a/epan/exntest.c +++ b/epan/exntest.c @@ -22,6 +22,7 @@ #include #include +#include #include "exceptions.h" gboolean failed = FALSE; @@ -105,7 +106,7 @@ run_tests(void) ex_thrown++; } ENDTRY; - + if (finally_called != 1) { printf("03: FINALLY called %u times (not 1) on uncaught exception\n", finally_called); failed = TRUE; @@ -139,7 +140,7 @@ run_tests(void) finally_called ++; } ENDTRY; - + if (finally_called != 11) { printf("04: finally_called = %u (not 11) on rethrown exception\n", finally_called); failed = TRUE; @@ -178,7 +179,7 @@ run_tests(void) finally_called ++; } ENDTRY; - + if (finally_called != 11) { printf("05: finally_called = %u (not 11) on exception thrown from CATCH\n", finally_called); failed = TRUE;