[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9960: Compiling Emacs trunk with MSVC

From: Eli Zaretskii
Subject: bug#9960: Compiling Emacs trunk with MSVC
Date: Mon, 21 Nov 2011 05:51:02 +0200

> From: Juanma Barranquero <address@hidden>
> Date: Mon, 21 Nov 2011 03:45:06 +0100
> Cc: address@hidden, Fabrice Popineau <address@hidden>,
>       address@hidden
> On Mon, Nov 21, 2011 at 03:30, Stefan Monnier <address@hidden> wrote:
> > I'm not sure I understand the question, but IIUC the answer is that
> > `long' is 64bit on all known 64bit POSIX systems.
> OK, let me rephrase the question to Fabrice (I thought that he meant
> that there was some typedef or macro that he had to change, not
> variables directly declared to be long):
> Why it is a problem to "switch long to something that is 64 bits long
> on a 64-bit architecture"? What is the problem exactly?

The hidden assumption is that a long and a pointer are of the same
width.  This is true on 32-bit hosts and on 64-bit Posix hosts (which
have the LP64 architecture), but not on 64-bit Windows, where long is
a 32-bit data type, but a pointer is 64-bit wide.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]