看板Linux
标 题Re: 如何在编译程式时得知 linux为 32/64 bit os
发信站gcin (Sun Aug 17 19:50:29 2008)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!not-for-mail
linux蓝海帝国 <
[email protected]> wrote:
> 各位大大好,
> 小弟手上有支程式如下;
> #define using_64_bit_os
> #ifdef using_64_bit_os
> #define vsize 8
> #else
> #define vsize 4
> #endif
#include <limits.h>
#if __WORDSIZE == 64
...........
--
My Projects:
http://hyperrate.com