0

我想__sync_bool_compare_and_swap在我的 C 程序中使用。

如何检测编译器是否支持此扩展?

4

1 回答 1

3

编写一个使用它的短程序并尝试编译它。如果它编译 - 你很高兴。

于 2013-01-25T06:35:11.293 回答