2012年(158)
分类: C/C++
2012-11-14 17:11:22
网友评论2012-11-14 17:15:24
簌簌
#ifdef UNIX
if(sizeof(int)==2)
{
typedef unsigned int WORD;
typedef unsigned long DWORD;
}else if(sizeof(int)==4){/*testen wir wieviele Stelle fuer diese System*/
typedef unsigned short WORD;
typedef unsigned int DWORD;
}else
{
printf("your system is lower as 16bits or higher as 32 bits, this programm can not run!");
exit(-1);
}
#else
typedef unsigned short WORD; <