Re: 如何在編譯程式時得知 linux為 32/64 bit os
linux藍海帝國 <jeremy007.bbs@ptt.cc> 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
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章