Skip to content

Commit

Permalink
Revert "Only define __dead if it's missing"
Browse files Browse the repository at this point in the history
This reverts commit 7f5694a.

Partial fix to #202.
  • Loading branch information
mptre committed Jul 4, 2017
1 parent 7e95207 commit bf666ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@
#include "config.h"
#endif

#ifdef __FreeBSD__
#define __dead __dead2
#endif /* __FreeBSD__ */

#if defined(__linux__) || defined(__CYGWIN__)
#ifndef __dead
#ifdef __GNUC__
#define __dead __attribute__((__noreturn__))
#else
#define __dead
#endif
#endif
#endif /* __linux__ || __CYGWIN__ */

#ifndef HAVE_REALLOCARRAY

Expand Down

0 comments on commit bf666ed

Please sign in to comment.