widl: Don't assume that host void* is the same size as target void*

svn path=/trunk/; revision=38212
This commit is contained in:
Jeffrey Morlan 2008-12-21 00:43:56 +00:00
parent 2f7e224584
commit 5c760c2d22

View file

@ -823,7 +823,13 @@ size_t type_memsize(const type_t *t, unsigned int *align)
}
else if (is_ptr(t) || is_conformant_array(t))
{
size = sizeof(void *);
#if defined(TARGET_i386)
size = 4;
#elif defined(TARGET_amd64)
size = 8;
#else
#error Unsupported CPU
#endif
if (size > *align) *align = size;
}
else switch (t->type)