This topic created in 4506 days ago, the information mentioned may be changed or developed.
只能使用各个编译器提供的宏吗?比如GCC的 __LP64__
4 replies • 2014-07-02 11:25:24 +08:00
 |
|
你都说是在预编译期了,不用宏用什么
|
 |
|
配合 configure 脚本或者 Makefile
|
 |
|
已解决 在Makefile定义ARCH = $(shell getconf LONG_BIT) ,然后CFLAGS += -D向代码传递宏定义就可以了
|