Re: 如何在編譯程式時得知 linux為 32/64 bit os

看板Linux作者時間17年前 (2008/08/17 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #18g1C400 (Linux)
文章代碼(AID): #18g1C400 (Linux)