diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-28 18:52:24 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-28 18:52:24 +0000 |
commit | 9c44ebc1e2da4eb5eedb2888b592b3fb86607643 (patch) | |
tree | 23d72d82828912da6be19d6d255f43d05393540a /e_os.h | |
parent | 75e3026a14339f3818fe57281979b7ee85399d43 (diff) |
Make sure EXIT() can always be used as one statement.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |