Mailing List Archive

Change for compiling 1.5.2 on Windows NT Alpha
Guido and fellow pythoneers...

There needs to be the following change in file fpectlmodule.c, line 163:

Line currently reads: #elif defined(__alpha)

line should read: #elif defined(__alpha) && !defined(_MSC_VER)


Rationale: The original line correctly identifies the DEC Alpha processor,
but not the OS. Consequently, when compiled under NT 4 Alpha using MSVC
5.0, which defines __alpha (apparently), the wrong section is processed.
The additional logic prevents the Microsoft compiler from processing the
wrong section.

Scott Cothrell

PS: I have Alpha NT versions compiled for python15.dll and python.exe
Change for compiling 1.5.2 on Windows NT Alpha [ In reply to ]
"Scott C" <scothrell@austin.rr.com> writes:

>There needs to be the following change in file fpectlmodule.c, line 163:

>Line currently reads: #elif defined(__alpha)

>line should read: #elif defined(__alpha) && !defined(_MSC_VER)

Or to follow the comments more obviously, change it to
#elif defined(__alpha) && defined(__osf__)

Jon.
Change for compiling 1.5.2 on Windows NT Alpha [ In reply to ]
Jonathan Giddy wrote in message <7f6l71$20e$1@towncrier.cc.monash.edu.au>...
>"Scott C" <scothrell@austin.rr.com> writes:
>
>>There needs to be the following change in file fpectlmodule.c, line 163:
>
>>Line currently reads: #elif defined(__alpha)
>
>>line should read: #elif defined(__alpha) && !defined(_MSC_VER)
>
>Or to follow the comments more obviously, change it to
>#elif defined(__alpha) && defined(__osf__)
>
>Jon.

Ya, that'd work :o)