只能使用各个编译器提供的宏吗?比如GCC的 __LP64__

1 missdeer Jul 2, 2014 你都说是在预编译期了,不用宏用什么 |
2 madeye Jul 2, 2014 配合 configure 脚本或者 Makefile |
4 xia0ta0 OP 已解决 在Makefile定义ARCH = $(shell getconf LONG_BIT) ,然后CFLAGS += -D向代码传递宏定义就可以了 |