From b2c075bec452f66155d447ed9a1ae1a6479502a8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 15 Jul 2001 16:58:05 +0000 Subject: [PATCH] Define NDEBUG when Py_DEBUG undefined, to disable the assert macro. --- Include/Python.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Include/Python.h b/Include/Python.h index 23938720049..334116c4a91 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -49,6 +49,10 @@ #ifdef HAVE_STDLIB_H #include #endif + +#ifndef Py_DEBUG +#define NDEBUG 1 +#endif #include #include "pyport.h"