Skip to content

Commit

Permalink
Ensure that EXIT_* defines match our expectations
Browse files Browse the repository at this point in the history
Issue #19

Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Aug 1, 2016
1 parent 9628f27 commit 4c8ae1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4c8ae1a

Please sign in to comment.