From 4c8ae1ae45de42be766e75ea221302a02a1c20f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 1 Aug 2016 12:02:10 +0200 Subject: [PATCH] Ensure that EXIT_* defines match our expectations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #19 Signed-off-by: Michal Čihař --- src/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index 6e77ba8..973232c 100644 --- a/src/common.h +++ b/src/common.h @@ -23,10 +23,10 @@ #include "../lib/internal.h" /* define or correctly redefine EXIT_* values */ -#if !(defined EXIT_SUCCESS) || (EXIT_SUCCESS != 0) +#if !(defined EXIT_SUCCESS) || (EXIT_SUCCESS != 0) || (EXIT_FAILURE == 0) # define EXIT_SUCCESS 0 # define EXIT_FAILURE 1 -#endif /* !(defined EXIT_SUCCESS) || (EXIT_SUCCESS != 0) */ +#endif /* !(defined EXIT_SUCCESS) || (EXIT_SUCCESS != 0) || (EXIT_FAILURE == 0) */ #define EXIT_TROUBLE 2 /* str- an mem- function, theoretically they are all in string.h */