suitesparse-metis-for-windows Bug记录

suitesparse-metis-for-windows Bug记录

Bug修改已提交jlblancoc/suitesparse-metis-for-windows

Visual Studio 2015 Math.h Error #19
Problem of build on VS 2013 #23

metis/GKlib/gk_arch.h中有个bug,从C++11开始标准库中已经支持该函数了,
VS 2013开始支持这一函数,修改如下:

#ifdef __MSC__
/* MSC does not have rint() function */
#if (_MSC_VER < 1800)
 #define rint(x) ((int)((x)+0.5))  
#endif

/* MSC does not have INFINITY defined */
#ifndef INFINITY
#define INFINITY FLT_MAX
#endif
#endif
posted @ 2016-06-03 11:19  corfox  阅读(248)  评论(0编辑  收藏  举报