You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/29 12:20:07 UTC

svn commit: r789276 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h

Author: mturk
Date: Mon Jun 29 10:20:07 2009
New Revision: 789276

URL: http://svn.apache.org/viewvc?rev=789276&view=rev
Log:
Fix no memprotect macro

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h?rev=789276&r1=789275&r2=789276&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_error.h Mon Jun 29 10:20:07 2009
@@ -123,11 +123,9 @@
 
 #endif
 #else
-#define ACR_TRY                                                               \
-    int _seh_error = 0;                                                       \
-    {
-#define ACR_CATCH()                                                           \
-    } if (_seh_error)
+static int _seh_error = 0;
+#define ACR_TRY
+#define ACR_CATCH() if (_seh_error)
 
 #endif /* HAVE_MEMPROTECT */