提交 fa56e13b 编写于 作者: S stevenj

add missing Windows exporting junk for nlopt_algorithm_name; thanks to Ofek...

add missing Windows exporting junk for nlopt_algorithm_name; thanks to Ofek Shilon for the bug report

darcs-hash:20100906175643-c8de0-dc82178a1444e3cf632cb44d405483d720e82163.gz
上级 258602a0
......@@ -98,7 +98,7 @@ static const char nlopt_algorithm_names[NLOPT_NUM_ALGORITHMS][256] = {
"Sequential Quadratic Programming (SQP) (local, derivative)",
};
const char *nlopt_algorithm_name(nlopt_algorithm a)
const char * NLOPT_STDCALL nlopt_algorithm_name(nlopt_algorithm a)
{
if (((int) a) < 0 || a >= NLOPT_NUM_ALGORITHMS) return "UNKNOWN";
return nlopt_algorithm_names[a];
......
......@@ -146,7 +146,7 @@ typedef enum {
NLOPT_NUM_ALGORITHMS /* not an algorithm, just the number of them */
} nlopt_algorithm;
extern const char *nlopt_algorithm_name(nlopt_algorithm a);
NLOPT_EXTERN(const char *) nlopt_algorithm_name(nlopt_algorithm a);
typedef enum {
NLOPT_FAILURE = -1, /* generic failure code */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册