Post by Ulrich EckhardtPost by Tim RobertsBoth of you are correct. In some 64-bit systems, long is 8 bytes.
In gcc, for example, "long" is 8 bytes in 64-bit systems, while "int" is
4 bytes.
Actually, that's not completely true. A win64-port must also use a 4-byte
long type and an 8-byte long long type.
Not so. The 64-bit gcc compiler, even when running on Windows, defines
"long" as an 8-byte type.
That has implications if you hope to use SDK include files. It means you
must make sure that you have this somewhat unintuitive set of definitions:
typedef int LONG, *PLONG;
typedef unsigned int ULONG, *PULONG;
Post by Ulrich EckhardtAs you say, it depends on the system.
It depends on the COMPILER.
--
Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc.