summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-14 15:47:10 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:18 +0100
commit6ff2ec7da32d2a2afeb2b1b0a1d5a78e2d573402 (patch)
treeeee661657a612cb298a64566da580c1637e9db57 /perl.h
parent7e0346596d505ad065530a113109ee0a1ff260e9 (diff)
downloadperl-6ff2ec7da32d2a2afeb2b1b0a1d5a78e2d573402.tar.gz
Rely on C89 <assert.h>
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/perl.h b/perl.h
index caf74e2280..2b4c324514 100644
--- a/perl.h
+++ b/perl.h
@@ -3219,12 +3219,10 @@ EXTERN_C int perl_tsa_mutex_unlock(perl_mutex* mutex)
# define __attribute__warn_unused_result__
#endif
-#ifdef I_ASSERT
-# if !defined(DEBUGGING) && !defined(NDEBUG)
-# define NDEBUG 1
-# endif
-# include <assert.h>
+#if !defined(DEBUGGING) && !defined(NDEBUG)
+# define NDEBUG 1
#endif
+#include <assert.h>
/* For functions that are marked as __attribute__noreturn__, it's not
appropriate to call return. In either case, include the lint directive.
@@ -3965,7 +3963,7 @@ Gid_t getegid (void);
"\", line %d", STRINGIFY(what), __LINE__), \
(void) 0)), ((void)0))
-/* assert() gets defined if DEBUGGING (and I_ASSERT).
+/* assert() gets defined if DEBUGGING.
* If no DEBUGGING, the <assert.h> has not been included. */
#ifndef assert
# define assert(what) Perl_assert(what)