Skip to content

x64 platform doesn't define _WIN64 #45899

Closed

Description

@tiran
BPO 1558
Nosy @loewis, @mhammond, @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2007-12-05.21:59:00.874>
created_at = <Date 2007-12-05.18:28:26.024>
labels = ['interpreter-core', 'build', 'invalid']
title = "x64 platform doesn't define _WIN64"
updated_at = <Date 2008-01-06.22:29:44.614>
user = 'https://github.com/tiran'

bugs.python.org fields:

activity = <Date 2008-01-06.22:29:44.614>
actor = 'admin'
assignee = 'none'
closed = True
closed_date = <Date 2007-12-05.21:59:00.874>
closer = 'christian.heimes'
components = ['Interpreter Core']
creation = <Date 2007-12-05.18:28:26.024>
creator = 'christian.heimes'
dependencies = []
files = []
hgrepos = []
issue_num = 1558
keywords = ['64bit']
message_count = 2.0
messages = ['58224', '58232']
nosy_count = 3.0
nosy_names = ['loewis', 'mhammond', 'christian.heimes']
pr_nums = []
priority = 'critical'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue1558'
versions = ['Python 3.0']

Activity

  1. tiran commented on Dec 5, 2007

    @tiran
    MemberAuthor

    In VS 2008 the x64 platform doesn't define the _WIN64 macro. The _WIN64
    macro defines the MS_WIN64 macro which sets several other macros and
    changes some variables in pyconfig.h.

    Question: Should we enforce MS_WIN64 for the x64 platform although
    _WIN64 is not defined?
    Question 2: WHY THE H... is the _WIN64 macro not defined? I'm googling now.

  2. added
    interpreter-core
    build
    on Dec 5, 2007
  3. tiran commented on Dec 5, 2007

    @tiran
    MemberAuthor

    Sorry guys, it was false alarm.

    From r59375:
    The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS
    2008 IDE doesn't know about (some) of the macros and can display wrong
    information. In my case a section #ifdef _WIN64 was grayed out although
    the platform was x64. I've added the macros to pyproject.vsprops and
    x64.vsprops to avoid future confusion.

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildinterpreter-core

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions