Would it make a difference if I use:
include "asm.inc"
window 640,480,1
hdc = GetBufferDC
extern lib "kernel32.dll"
! SetPixelV Lib "gdi32.dll" (sys hdc, x, y, crColor) As sys
end extern
for i=0 to 639
setpixelv hdc,i,100,0xffffff
next
waitkey
winExit
Code: C
#ifdef _WIN64 BYTE bReserved[6]; #else #if defined(_WIN32) BYTE bReserved[2]; #endif #endif
Such a tree of preprocessor conditionals has three distinct branches:•when the _WIN64 preprocessor internal flag is defined under x64, in which case the preprocessor is supposed to insert BYTE bReserved[6];
•when the _WIN32 preprocessor internal flag is defined under x86, in which case the preprocessor is supposed to insert BYTE bReserved[2];
•none of those flags are defined, for example under WinCE, in which case the preprocessor is supposed to omit the alignment bytes from the structure declaration altogether.