From 449be3830599f12a5b965fe44d1c0d661bb424d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= <martin@v.loewis.de>
Date: Sat, 22 Apr 2006 15:19:54 +0000
Subject: Port to Python 2.5. Drop .DEF file. Change output file names to .pyd.

---
 PC/example_nt/example.c      |  2 +-
 PC/example_nt/example.def    |  2 --
 PC/example_nt/example.vcproj | 15 ++++++---------
 3 files changed, 7 insertions(+), 12 deletions(-)
 delete mode 100644 PC/example_nt/example.def

diff --git a/PC/example_nt/example.c b/PC/example_nt/example.c
index 63682f1..46cb429 100644
--- a/PC/example_nt/example.c
+++ b/PC/example_nt/example.c
@@ -13,7 +13,7 @@ static PyMethodDef example_methods[] = {
 	{NULL, NULL}
 };
 
-void
+PyMODINIT_FUNC
 initexample(void)
 {
 	Py_InitModule("example", example_methods);
diff --git a/PC/example_nt/example.def b/PC/example_nt/example.def
deleted file mode 100644
index 96b69a5..0000000
--- a/PC/example_nt/example.def
+++ /dev/null
@@ -1,2 +0,0 @@
-EXPORTS
-	initexample
diff --git a/PC/example_nt/example.vcproj b/PC/example_nt/example.vcproj
index 0e6830b..7c0d4bb 100644
--- a/PC/example_nt/example.vcproj
+++ b/PC/example_nt/example.vcproj
@@ -39,12 +39,12 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions="/export:initexample"
-				AdditionalDependencies="odbc32.lib odbccp32.lib python24.lib"
-				OutputFile=".\Release/example.dll"
+				AdditionalDependencies="odbc32.lib odbccp32.lib python25.lib"
+				OutputFile=".\Release/example.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
 				AdditionalLibraryDirectories="..\PCbuild"
-				ModuleDefinitionFile=".\example.def"
+				ModuleDefinitionFile=""
 				ProgramDatabaseFile=".\Release/example.pdb"
 				SubSystem="2"
 				ImportLibrary=".\Release/example.lib"
@@ -105,12 +105,12 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions="/export:initexample"
-				AdditionalDependencies="odbc32.lib odbccp32.lib python24_d.lib"
-				OutputFile=".\Debug/example_d.dll"
+				AdditionalDependencies="odbc32.lib odbccp32.lib python25_d.lib"
+				OutputFile=".\Debug/example_d.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
 				AdditionalLibraryDirectories="..\PCbuild"
-				ModuleDefinitionFile=".\example.def"
+				ModuleDefinitionFile=""
 				GenerateDebugInformation="TRUE"
 				ProgramDatabaseFile=".\Debug/example_d.pdb"
 				SubSystem="2"
@@ -171,9 +171,6 @@
 						PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;$(NoInherit)"/>
 				</FileConfiguration>
 			</File>
-			<File
-				RelativePath="example.def">
-			</File>
 		</Filter>
 		<Filter
 			Name="Header Files"
-- 
cgit v0.12

