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

Skip to content

Commit bce52be

Browse files
committed
Fixed some build issues and updated docs.
1 parent d157e69 commit bce52be

6 files changed

Lines changed: 15 additions & 10 deletions

File tree

Include/structmember.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ typedef struct PyMemberDef {
6969
/* Flags */
7070
#define READONLY 1
7171
#define READ_RESTRICTED 2
72-
#define WRITE_RESTRICTED 4
73-
#define RESTRICTED (READ_RESTRICTED | WRITE_RESTRICTED)
72+
#define PY_WRITE_RESTRICTED 4
73+
#define RESTRICTED (READ_RESTRICTED | PY_WRITE_RESTRICTED)
7474

7575

7676
/* Current API, use this */

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Core and Builtins
3939
streams (fileno(stdin) < 0). For now this happens only for Windows GUI
4040
apps and scripts started with `pythonw.exe`.
4141

42+
- Added PCbuild9 directory for VS 2008.
43+
44+
- Renamed structmember.h WRITE_RESTRICTED to PY_WRITE_RESTRICTED to work
45+
around a name clash with VS 2008 on Windows.
46+
47+
4248
Extension Modules
4349
-----------------
4450

Objects/funcobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations)
227227
static PyMemberDef func_memberlist[] = {
228228
{"__closure__", T_OBJECT, OFF(func_closure),
229229
RESTRICTED|READONLY},
230-
{"__doc__", T_OBJECT, OFF(func_doc), WRITE_RESTRICTED},
230+
{"__doc__", T_OBJECT, OFF(func_doc), PY_WRITE_RESTRICTED},
231231
{"__globals__", T_OBJECT, OFF(func_globals),
232232
RESTRICTED|READONLY},
233-
{"__module__", T_OBJECT, OFF(func_module), WRITE_RESTRICTED},
233+
{"__module__", T_OBJECT, OFF(func_module), PY_WRITE_RESTRICTED},
234234
{NULL} /* Sentinel */
235235
};
236236

Objects/methodobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static PyGetSetDef meth_getsets [] = {
167167
#define OFF(x) offsetof(PyCFunctionObject, x)
168168

169169
static PyMemberDef meth_members[] = {
170-
{"__module__", T_OBJECT, OFF(m_module), WRITE_RESTRICTED},
170+
{"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED},
171171
{NULL}
172172
};
173173

PCbuild9/pythoncore.vcproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/>
6262
<Tool
6363
Name="VCLinkerTool"
64+
AdditionalDependencies="getbuildinfo.o"
6465
OutputFile="./python30.dll"
6566
IgnoreDefaultLibraryNames="libc"
6667
ProgramDatabaseFile="python30.pdb"
@@ -137,6 +138,7 @@
137138
/>
138139
<Tool
139140
Name="VCLinkerTool"
141+
AdditionalDependencies="getbuildinfo.o"
140142
OutputFile="./python30.dll"
141143
IgnoreDefaultLibraryNames="libc"
142144
ProgramDatabaseFile="python30.pdb"
@@ -213,6 +215,7 @@
213215
/>
214216
<Tool
215217
Name="VCLinkerTool"
218+
AdditionalDependencies="getbuildinfo.o"
216219
OutputFile="$(PyDllName)_d.dll"
217220
IgnoreDefaultLibraryNames="libc"
218221
ProgramDatabaseFile="python30_d.pdb"
@@ -1180,10 +1183,6 @@
11801183
RelativePath="..\PC\errmap.h"
11811184
>
11821185
</File>
1183-
<File
1184-
RelativePath="..\PCBuild9_old\getbuildinfo.c"
1185-
>
1186-
</File>
11871186
<File
11881187
RelativePath="..\PC\getpathp.c"
11891188
>

PCbuild9/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ _ssl
227227

228228
Get the source code through
229229

230-
svn export http://svn.python.org/projects/external/openssl-0.9.8a
230+
svn export http://svn.python.org/projects/external/openssl-0.9.8g
231231

232232
Alternatively, get the latest version from http://www.openssl.org.
233233
You can (theoretically) use any version of OpenSSL you like - the

0 commit comments

Comments
 (0)