From: Richard Levitte Date: Thu, 28 Nov 2002 18:52:24 +0000 (+0000) Subject: Make sure EXIT() can always be used as one statement. X-Git-Tag: OpenSSL_0_9_7-beta5~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9c44ebc1e2da4eb5eedb2888b592b3fb86607643;p=oweals%2Fopenssl.git Make sure EXIT() can always be used as one statement. --- diff --git a/e_os.h b/e_os.h index 9992c85218..a4f1cb1a94 100644 --- a/e_os.h +++ b/e_os.h @@ -247,9 +247,9 @@ extern "C" { # endif # if defined(WIN16) && !defined(MONOLITH) && defined(SSLEAY) && defined(_WINEXITNOPERSIST) -# define EXIT(n) { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); } +# define EXIT(n) do { if (n == 0) _wsetexit(_WINEXITNOPERSIST); return(n); } while(0) # else -# define EXIT(n) return(n); +# define EXIT(n) return(n) # endif # define LIST_SEPARATOR_CHAR ';' # ifndef X_OK @@ -348,7 +348,7 @@ extern "C" { # define LIST_SEPARATOR_CHAR ':' # define NUL_DEV "/dev/null" # ifndef MONOLITH -# define EXIT(n) exit(n); return(n) +# define EXIT(n) do { exit(n); return(n); } while(0) # else # define EXIT(n) return(n) # endif