看板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