X-Spam-Check-By: sourceware.org Date: Mon, 20 Aug 2007 10:02:30 -0400 From: Jason Tishler Subject: Re: python module patch In-reply-to: <46C81173.2040401@x-ray.at> To: cygwin AT cygwin DOT com Mail-followup-to: cygwin AT cygwin DOT com Message-id: <20070820140230.GD1880@tishler.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <46C6CE48 DOT 10004 AT x-ray DOT at> <46C7C573 DOT 2000100 AT users DOT sourceforge DOT net> <46C81173 DOT 2040401 AT x-ray DOT at> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, Aug 19, 2007 at 11:46:27AM +0200, Reini Urban wrote: > Yaakov (Cygwin Ports) schrieb: > >Reini Urban wrote: > >>extern __declspec(dllexport) cannot be used as constant during > >>compile-time. > >>=> "initializer element is not constant" > >>cygwin auto-import feature get's that right at link-time. > >> > >>This is needed for the constant (compile-time) resolution of > >>PyObject_HEAD_INIT(&PyType_Type) in a typical PyTypeObject struct. > > > >I believe the commonly accepted solution is to change this to > >PyObject_HEAD_INIT(NULL) in the struct. > > > >http://starship.python.net/crew/mwh/toext/node20.html > > Indeed. That sounds better. FWIW, I concur too. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/