summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-06 16:30:30 (GMT)
committerFred Drake <fdrake@acm.org>2001-09-06 16:30:30 (GMT)
commit396ca574ddf6cf0df390166d450d67d5d57f5884 (patch)
tree5824219d8ea13c38db78199145cae2ad214bf064 /Doc/api
parent9b88b4c9e8e8604d2f8f66efd9c9cecb5ad2e364 (diff)
downloadcpython-396ca574ddf6cf0df390166d450d67d5d57f5884.zip
cpython-396ca574ddf6cf0df390166d450d67d5d57f5884.tar.gz
cpython-396ca574ddf6cf0df390166d450d67d5d57f5884.tar.bz2
Document the rule that Python.h must be included before any standard
headers. This is the final checkin for SF bug #458768.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/api.tex3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index b3a32d1..2527bd6 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -76,6 +76,9 @@ API are included in your code by the following line:
This implies inclusion of the following standard headers:
\code{<stdio.h>}, \code{<string.h>}, \code{<errno.h>},
\code{<limits.h>}, and \code{<stdlib.h>} (if available).
+Since Python may define some pre-processor definitions which affect
+the standard headers on some systems, you must include \file{Python.h}
+before any standard headers are included.
All user visible names defined by Python.h (except those defined by
the included standard headers) have one of the prefixes \samp{Py} or