Skip to content

Commit 1dc97ac

Browse files
author
martin.v.loewis
committed
Port to Python 2.5. Drop .DEF file. Change output file names to .pyd.
git-svn-id: http://svn.python.org/projects/python/trunk@45647 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 1417bd2 commit 1dc97ac

3 files changed

Lines changed: 7 additions & 12 deletions

File tree

PC/example_nt/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static PyMethodDef example_methods[] = {
1313
{NULL, NULL}
1414
};
1515

16-
void
16+
PyMODINIT_FUNC
1717
initexample(void)
1818
{
1919
Py_InitModule("example", example_methods);

PC/example_nt/example.def

Lines changed: 0 additions & 2 deletions
This file was deleted.

PC/example_nt/example.vcproj

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
<Tool
4040
Name="VCLinkerTool"
4141
AdditionalOptions="/export:initexample"
42-
AdditionalDependencies="odbc32.lib odbccp32.lib python24.lib"
43-
OutputFile=".\Release/example.dll"
42+
AdditionalDependencies="odbc32.lib odbccp32.lib python25.lib"
43+
OutputFile=".\Release/example.pyd"
4444
LinkIncremental="1"
4545
SuppressStartupBanner="TRUE"
4646
AdditionalLibraryDirectories="..\PCbuild"
47-
ModuleDefinitionFile=".\example.def"
47+
ModuleDefinitionFile=""
4848
ProgramDatabaseFile=".\Release/example.pdb"
4949
SubSystem="2"
5050
ImportLibrary=".\Release/example.lib"
@@ -105,12 +105,12 @@
105105
<Tool
106106
Name="VCLinkerTool"
107107
AdditionalOptions="/export:initexample"
108-
AdditionalDependencies="odbc32.lib odbccp32.lib python24_d.lib"
109-
OutputFile=".\Debug/example_d.dll"
108+
AdditionalDependencies="odbc32.lib odbccp32.lib python25_d.lib"
109+
OutputFile=".\Debug/example_d.pyd"
110110
LinkIncremental="1"
111111
SuppressStartupBanner="TRUE"
112112
AdditionalLibraryDirectories="..\PCbuild"
113-
ModuleDefinitionFile=".\example.def"
113+
ModuleDefinitionFile=""
114114
GenerateDebugInformation="TRUE"
115115
ProgramDatabaseFile=".\Debug/example_d.pdb"
116116
SubSystem="2"
@@ -171,9 +171,6 @@
171171
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;$(NoInherit)"/>
172172
</FileConfiguration>
173173
</File>
174-
<File
175-
RelativePath="example.def">
176-
</File>
177174
</Filter>
178175
<Filter
179176
Name="Header Files"

0 commit comments

Comments
 (0)