Skip to content

Commit

Permalink
Make sure EXIT() can always be used as one statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
levitte committed Nov 28, 2002
1 parent 4579924 commit 6c35947
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c35947

Please sign in to comment.