> By why does this not fail when building native linux compiler? I'm > using same patched source as used by the distribution in that field. > By inspected the said function I fail to see what's wrong with it. Can > you explain what's wrong with: > > static char name [UNLEN + 1]; > DWORD namelen = sizeof (name);
use DWORD_PTR here. (DWORD is strictly 32 bits, DWORD_PTR is pointer sized.) > GetUserName (name, &namelen); > > http://repo.or.cz/w/official-gcc.git/blob/gcc-4_4-branch:/libgfortran/intrinsics/getlog.c > > Does this code implies that sizeof(char) is the pointer size? if yes I > guess I should file a bug in launchpad. -- Ozkan ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public