C2008 关于_vsnprintf 的重定义问题
在使用VS2008打开一个2005的firebird工程,进行编译时,发生一个关于_vsnprintf 的错误
c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: “_vsnprintf”: 属性与以前的声明不一致
据说是因为winpcap对系统的stdio.h进行了重定议,两个版本间出现了一点小小的磨擦,我将WpdPack_4_0_1中的pcap-stdinc.h文件中#define vsnprintf _vsnprintf一句注释掉,问题就解决了。
_Check_return_opt_ _CRT_INSECURE_DEPRECATE(vsnprintf_s) _CRTIMP /*int __cdecl vsnprintf(_Out_cap_(_MaxCount) char * _DstBuf, _In_ size_t _MaxCount, _In_z_ _Printf_format_string_ const char * _Format, va_list _ArgList)*/;