回文章列表
作者gcin <gcin@gcin.org.tw> 看板: linux
標題Re: 如何在編譯程式時得知 linux為 32/64 bit os
時間gcin (2008/08/17 Sun 19:50:29)
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
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻