I am presently working on converting a 32bits application into a 64bits application in C. This application is currently working on x86 architecture (Windows, osx, Unix, Linu
LONG
is not long
.(int)&x
casts and typing with intptr_t
and (unsigned int)&x
with uintptr_t
char*
to do pointer arithmetic with it.4 = sizeof(void*)
#ifdef RUN64
or anything similar. You'll regret it if 128-bit platforms ever go into vogue.EDIT added uintptr_t
note as suggested by comment.