Fix missing parenthesizes in <sys/wait.h> macros.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-08-12 23:38:57 +02:00
parent 840c8e6b02
commit 6cf07034d5
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ __BEGIN_DECLS
#define __WNATURE_STOPPED 2
#define __WNATURE_CONTINUED 3
#define __WEXITSTATUS(status) ((status >> 8) & 0xFF)
#define __WTERMSIG(status) ((status >> 0) & 0x7F)
#define __WNATURE(status) ((status >> 16) & 0xFF)
#define __WEXITSTATUS(status) (((status) >> 8) & 0xFF)
#define __WTERMSIG(status) (((status) >> 0) & 0x7F)
#define __WNATURE(status) (((status) >> 16) & 0xFF)
#define __WIFEXITED(status) (__WNATURE(status) == __WNATURE_EXITED)
#define __WIFSIGNALED(status) (__WNATURE(status) == __WNATURE_SIGNALED)