chrome angle vc2005编译

编译angle时候会产生_interlockedbittestandset 重载的问题

因为SDK和vc/include冲突了

There are 2 conflicting declarations of _interlockedbittestandset.
In intrin.h the first argument is long *
In WinNT.h the first argument is long volatile *

我们处理方案是,此时函数在intrin.h中会吧函数当成红处理的,不会函数冲突了  

#define _interlockedbittestandset fk_m$_set
#define _interlockedbittestandreset fk_m$_reset
#include <intrin.h>
#undef _interlockedbittestandset
#undef _interlockedbittestandreset

 

posted @ 2012-08-14 14:25  zhengchuang  阅读(341)  评论(0编辑  收藏  举报