summaryrefslogtreecommitdiff
path: root/tests/Reactor_Exceptions_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2003-04-26 10:43:47 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2003-04-26 10:43:47 +0000
commit9f0ba8f70bc8604481de4ba145bc7c0efd0a3a84 (patch)
tree504b1dcf85025c2aa75dae23281cb3c3d70f1f33 /tests/Reactor_Exceptions_Test.cpp
parent3a5295e965efb12b2211e15587f050fb00716ab0 (diff)
downloadATCD-9f0ba8f70bc8604481de4ba145bc7c0efd0a3a84.tar.gz
ChangeLogTag: Sat Apr 26 10:42:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'tests/Reactor_Exceptions_Test.cpp')
-rw-r--r--tests/Reactor_Exceptions_Test.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/Reactor_Exceptions_Test.cpp b/tests/Reactor_Exceptions_Test.cpp
index 45f4d88fa07..9527b5f3916 100644
--- a/tests/Reactor_Exceptions_Test.cpp
+++ b/tests/Reactor_Exceptions_Test.cpp
@@ -105,18 +105,18 @@ public:
try
{
-# if defined (__BORLANDC__)
+# if defined (ACE_WIN32) && defined (__BORLANDC__)
// BCB does not catch structured exceptions with catch (...).
// Actually, the ANSI spec says that system exceptions are not
// supposed to be caught with catch. Borland may add this, and
// make it "switchable" in the future...
try
{
-# endif /* defined (__BORLANDC__) */
+# endif /* defined (ACE_WIN32 && __BORLANDC__) */
ret = ACE_Reactor::handle_events (max_wait_time);
-# if defined (__BORLANDC__)
+# if defined (ACE_WIN32) && defined (__BORLANDC__)
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
@@ -124,7 +124,7 @@ public:
// and throw something that represents the structured exception
throw "Win32 Structured Exception";
}
-# endif /* defined (__BORLANDC__) */
+# endif /* defined (ACE_WIN32 &&__BORLANDC__) */
}
catch (...)
{
@@ -133,7 +133,6 @@ public:
ret = -1;
// do your thing, etc.
}
-//}
return ret;
}