[Patches] [ python-Patches-1457736 ] patch for building trunk with VC6

SourceForge.net noreply at sourceforge.net
Sat May 6 20:16:18 CEST 2006


Patches item #1457736, was opened at 2006-03-24 21:40
Message generated for change (Comment added) made by infidel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1457736&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Hirokazu Yamamoto (ocean-city)
Assigned to: Raymond Hettinger (rhettinger)
Summary: patch for building trunk with VC6

Initial Comment:
Hello. I tried to build trunk with VC6, but failed.
The reasons are

 - _W64 is not defined on VC6. (PC/pyconfig.h)

 - intptr_t and uintptr_t are not decleared on VC6.
(should use Py_intptr_t and Py_uintptr_t respectively)

I'll submit the patch for these two issues as
"build_trunk_for_vc6.patch".

And more two issues.

 - zlib was make built into pythoncore, but
PC/VC6/pythoncore.dsp is not updated for it yet.

I'll submit the file itself.

 - long long cannot be used on VC6, so 0xFFFFULL is
failed to compile with "invalid suffix" error.

I workarounded this replaced ULL with UI64 (_int64's
suffix) but I don't know how to make the patch. maybe
can this tequnique be used?

  #define Py_ULL(x) x##ULL /* non VC6 */

  #define Py_ULL(x) x##UI64 /* VC6 */

  Py_ULL(0xFFFFFFFFFFFFFFFF) instead of 0xFFF...FULL



----------------------------------------------------------------------

Comment By: Luke Dunstan (infidel)
Date: 2006-05-07 02:16

Message:
Logged In: YES 
user_id=30442

Is there anything preventing this patch from being 
applied? It would help me with building the trunk using 
both VC6 and Microsoft eMbedded Visual C++ 4.0 (for 
Windows CE).


----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-03-27 01:02

Message:
Logged In: YES 
user_id=33168

Raymond, maybe this will help get VC6 building?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1457736&group_id=5470


More information about the Patches mailing list