Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34c4320

Browse files
committed
Emphasize the requirement that Python.h be included first more strongly.
Closes SF bug #837228; backporting for Python 2.3.4.
1 parent 203b10c commit 34c4320

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

Doc/api/intro.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ \section{Include Files \label{includes}}
3737
This implies inclusion of the following standard headers:
3838
\code{<stdio.h>}, \code{<string.h>}, \code{<errno.h>},
3939
\code{<limits.h>}, and \code{<stdlib.h>} (if available).
40-
Since Python may define some pre-processor definitions which affect
41-
the standard headers on some systems, you must include \file{Python.h}
42-
before any standard headers are included.
40+
41+
\begin{notice}[warning]
42+
Since Python may define some pre-processor definitions which affect
43+
the standard headers on some systems, you \emph{must} include
44+
\file{Python.h} before any standard headers are included.
45+
\end{notice}
4346

4447
All user visible names defined by Python.h (except those defined by
4548
the included standard headers) have one of the prefixes \samp{Py} or

Doc/ext/extending.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ \section{A Simple Example
4646

4747
which pulls in the Python API (you can add a comment describing the
4848
purpose of the module and a copyright notice if you like).
49-
Since Python may define some pre-processor definitions which affect
50-
the standard headers on some systems, you must include \file{Python.h}
51-
before any standard headers are included.
49+
50+
\begin{notice}[warning]
51+
Since Python may define some pre-processor definitions which affect
52+
the standard headers on some systems, you \emph{must} include
53+
\file{Python.h} before any standard headers are included.
54+
\end{notice}
5255

5356
All user-visible symbols defined by \file{Python.h} have a prefix of
5457
\samp{Py} or \samp{PY}, except those defined in standard header files.

0 commit comments

Comments
 (0)