summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-15 18:38:47 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-15 18:38:47 (GMT)
commit0d5dd68692e8e7a4ebe16cf0902de6a778ea5200 (patch)
treefd1db4976fcd7090a2230d43012f37d1ede1afb4 /Include
parentb2c075bec452f66155d447ed9a1ae1a6479502a8 (diff)
downloadcpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.zip
cpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.tar.gz
cpython-0d5dd68692e8e7a4ebe16cf0902de6a778ea5200.tar.bz2
Python.h: Don't attempt to redefine NDEBUG if it's already defined.
Others: Remove redundant includes of assert.h.
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 334116c..5d91125 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -51,8 +51,10 @@
#endif
#ifndef Py_DEBUG
+#ifndef NDEBUG
#define NDEBUG 1
#endif
+#endif
#include <assert.h>
#include "pyport.h"