summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-28 18:52:14 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-28 18:52:14 +0000
commit6c359479d7755e6f228196e17fcdc98a05724d78 (patch)
tree903ed59d7ee68cb66575e26760d0d6a64c5cf560 /e_os.h
parent4579924b7e55fccc7013e6de196f2e2ab175ce39 (diff)
downloadopenssl-new-6c359479d7755e6f228196e17fcdc98a05724d78.tar.gz
Make sure EXIT() can always be used as one statement.
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h6
1 files changed, 3 insertions, 3 deletions
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