Commit Graph

590 Commits

Author SHA1 Message Date
Christian Heimes 9f6d4ceb43 Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro. 2007-12-01 01:03:20 +00:00
Christian Heimes 3971f6b8fb Removed or replaced some more deprecated preprocessor macros.
Moved the _DEBUG and NDEBUG macros to two new property files.
Fixed #1527 Problem with static libs on Windows
Updated README.txt
2007-11-30 19:18:08 +00:00
Martin v. Löwis d476a400b4 Bug #1216: Restore support for Visual Studio 2002.
Will backport to 2.5.
2007-10-12 08:56:52 +00:00
Mark Hammond a6a21fabbc Correct use of Py_BUILD_CORE - now make sure it is defined before it is
referenced, and also fix definition of _WIN32_WINNT.
Resolves patch 1761803.
2007-07-30 00:45:29 +00:00
Mark Hammond df7f38face Correctly detect AMD64 architecture on VC2003 2007-07-27 05:08:54 +00:00
Mark Hammond d0aabc03c6 In consultation with Kristjan Jonsson, only define WINVER and _WINNT_WIN32
if (a) we are building Python itself and (b) no one previously defined them
2007-07-27 04:52:32 +00:00
Martin v. Löwis 6819210b9e PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
2007-07-21 06:55:02 +00:00
Martin v. Löwis da073e1601 Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Will backport to 2.5.
2007-06-14 20:46:25 +00:00
Martin v. Löwis 71d11d30c4 Fix Windows build. 2007-06-09 07:58:05 +00:00
Martin v. Löwis 6371cd8177 Patch #1733960: Allow T_LONGLONG to accept ints.
Will backport to 2.5.
2007-06-09 07:42:52 +00:00
Kristján Valur Jónsson 629ec26f63 Include <windows.h> after python.h, so that WINNT is properly set before windows.h is included. Fixes warnings in PC builds. 2007-05-26 19:31:39 +00:00
Mark Hammond 5f2ba9f2b1 Remove definition of PY_UNICODE_TYPE from pyconfig.h, allowing the
definition in unicodeobject.h to be used, giving us the desired
wchar_t in place of 'unsigned short'.  As discussed on python-dev.
2007-05-23 02:04:28 +00:00
Brett Cannon 7e93587746 Try to remove rgbimg from Windows builds. 2007-05-20 19:05:06 +00:00
Kristján Valur Jónsson c0e9840028 Revert compiler comment to AMD64 for x64/AMD64 builds. 2007-05-04 00:25:08 +00:00
Kristján Valur Jónsson f030394de3 Fix problems in x64 build that were discovered by the testsuite:
- Reenable modules on x64 that had been disabled aeons ago for Itanium.
- Cleared up confusion about compilers for 64 bit windows.  There is only Itanium and x64.  Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above.
- Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms.
- Fixed thread_nt.h.  The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier.  Anyway, win95 is no longer a target platform.
- Itertools module used wrong constant to check for overflow in count()
- PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member.
- PyLong_FromSsize_t() incorrectly specified that the operand were unsigned.

With these changes, the x64 passes the testsuite, for those modules present.
2007-05-03 20:27:03 +00:00
Kristján Valur Jónsson 7a0da19087 Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64. 2007-04-30 15:17:46 +00:00
Kristján Valur Jónsson 17b8e97e2e Merge change 54909 from release25-maint: Fix several minor issues discovered using code analysis in VisualStudio 2005 Team Edition 2007-04-25 00:10:50 +00:00
Trent Mick e6bdb9be0e Add the necessary dependency for the Windows VC6 build to ensure 'pythoncore'
is built before '_ctypes' is attempted.
Will backport to 2.5 once it is unfrozen for 2.5.1.
2007-04-13 23:22:05 +00:00
Kristján Valur Jónsson 019fcbc2e8 Fix potential crash in path manipulation on windows 2007-04-13 22:20:13 +00:00
Raymond Hettinger eb9798892d Prepare collections module for pure python code entries. 2007-02-28 18:37:52 +00:00
Anthony Baxter 83955ef639 update to (c) years to include 2007 2007-01-06 04:45:54 +00:00
Martin v. Löwis 2607e6c021 Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.
2006-11-21 18:20:25 +00:00
Tim Peters b03c35bac3 Add missing svn:eol-style to text files. 2006-10-18 05:10:28 +00:00
Martin v. Löwis 79282a2b13 Remove obsolete file. Will backport. 2006-10-17 18:09:55 +00:00
Martin v. Löwis 7addebfde0 Patch #1457736: Update VC6 to use current PCbuild settings.
Will backport to 2.5.
2006-10-17 15:18:06 +00:00
Martin v. Löwis f56591cb52 Set the eol-style for project files to "CRLF". 2006-10-15 11:57:40 +00:00
Martin v. Löwis 6eb36b0cfa Patch #1577551: Add ctypes and ET build support for VC6.
Will backport to 2.5.
2006-10-15 08:51:22 +00:00
Martin v. Löwis c9e82f6234 Patch #1576954: Update VC6 build directory; remove redundant
files in VC7. Will backport to 2.5.
2006-10-15 07:54:40 +00:00
Georg Brandl 412a9ea10e Patch #1572724: fix typo ('=' instead of '==') in _msi.c. 2006-10-09 19:03:06 +00:00
Martin v. Löwis 8b274265f0 Add MSVC8 project files to create wininst-8.exe. 2006-10-04 15:25:28 +00:00
Kristján Valur Jónsson b15a0ccf6d Update the PCBuild8 solution.
Facilitate cross-compilation by having binaries in separate Win32 and x64 directories.
Rationalized configs by making proper use of platforms/configurations.
Remove pythoncore_pgo project.
Add new PGIRelease and PGORelease configurations to perform Profile Guided Optimisation.
Removed I64 support, but this can be easily added by copying the x64 platform settings.
2006-09-05 17:58:12 +00:00
Neal Norwitz 094353c484 Try to get Windows bots working again 2006-08-18 04:58:33 +00:00
Barry Warsaw d17301f95c Enable the building of the _types module on Windows.
Note that this has only been tested for VS 2003 since that's all I have.
2006-07-27 23:50:40 +00:00
Georg Brandl 844f7ddcdc Patch #1527744: right order of includes in order to have HAVE_CONIO_H defined properly. 2006-07-24 13:46:47 +00:00
Martin v. Löwis d22968af17 Patch #1232023: Don't include empty path component from registry,
so that the current directory does not get added to sys.path.
Also fixes #1526785.
2006-07-24 11:54:53 +00:00
Martin v. Löwis bda0dde1c4 Patch #1448199: Release GIL around ConnectRegistry. 2006-07-24 10:26:33 +00:00
Andrew MacIntyre bb4503716f Build updates for OS/2 EMX port 2006-07-23 12:57:02 +00:00
Martin v. Löwis 0e8bd7e1cc Patch #1495999: Part two of Windows CE changes.
- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
2006-06-10 12:23:46 +00:00
Kristján Valur Jónsson dbeaa699cd Turn off warning about deprecated CRT functions on for VisualStudio .NET 2005.
Make the definition #ARRAYSIZE conditional.  VisualStudio .NET 2005 already has it defined using a better gimmick.
2006-06-09 16:28:01 +00:00
Georg Brandl ad62489e47 Bug #1500293: fix memory leaks in _subprocess module. 2006-06-04 22:15:37 +00:00
Martin v. Löwis 5844b12c44 Updated version (win32-icons2.zip) from #1490384. 2006-06-03 07:42:26 +00:00
Georg Brandl bf92f46572 Convert more modules to METH_VARARGS. 2006-05-29 21:58:42 +00:00
Nick Coghlan c649ec5b69 Apply modified version of Collin Winter's patch #1478788
Renames functional extension module to _functools and adds a Python
functools module so that utility functions like update_wrapper can be
added easily.
2006-05-29 12:43:05 +00:00
Martin v. Löwis 8301c7923d Rest of patch #1490384: Commit icon source, remove
claim that Erik von Blokland is the author of the
installer picture.
2006-05-28 16:57:38 +00:00
Kristján Valur Jónsson f94323fbb4 Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms 2006-05-25 15:53:30 +00:00
Tim Peters f178e5c1b7 Get the Windows build working again (recover from
`struct` module changes).
2006-05-23 19:34:37 +00:00
Tim Peters 31a4262d3d Define SIZEOF_{DOUBLE,FLOAT} on Windows. Else
Michael Hudson's nice gimmicks for IEEE special
values (infinities, NaNs) don't work.
2006-05-22 11:29:41 +00:00
Martin v. Löwis a43190bc78 Patch #1492356: Port to Windows CE (patch set 1). 2006-05-22 09:15:18 +00:00
Martin v. Löwis f90347fdbb Patch 1490384: New Icons for the PC build. 2006-05-22 08:48:14 +00:00
Martin v. Löwis 879768dd97 Change WindowsError to carry the Win32 error code in winerror,
and the DOS error code in errno. Revert changes where
WindowsError catch blocks unnecessarily special-case OSError.
2006-05-11 13:28:43 +00:00