New submission from Christian Heimes:

patrickkidd (IRC nick) has reported a problem with creating a static
libraries on Windows. He suggested the appended patch.

----------
assignee: loewis
components: Windows
files: trunk_staticlib.patch
keywords: patch, py3k
messages: 57991
nosy: loewis, tiran
severity: normal
status: open
title: Problem with static libs on Windows
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file8835/trunk_staticlib.patch

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1527>
__________________________________
Index: PC/dl_nt.c
===================================================================
--- PC/dl_nt.c	(Revision 59200)
+++ PC/dl_nt.c	(Arbeitskopie)
@@ -13,6 +13,8 @@
 
 char dllVersionBuffer[16] = ""; // a private buffer
 
+#ifdef Py_ENABLE_SHARED
+
 // Python Globals
 HMODULE PyWin_DLLhModule = NULL;
 const char *PyWin_DLLVersionString = dllVersionBuffer;
@@ -35,3 +37,6 @@
 	}
 	return TRUE;
 }
+
+#endif /* Py_ENABLE_SHARED */
+
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to