Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7badb1e7
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7badb1e7
编写于
7月 18, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix configure problem.
上级
b721c9e1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
9 deletion
+43
-9
src/backend/port/isinf.c
src/backend/port/isinf.c
+24
-8
src/configure.in
src/configure.in
+7
-0
src/include/config.h.in
src/include/config.h.in
+12
-1
未找到文件。
src/backend/port/isinf.c
浏览文件 @
7badb1e7
/* $Id: isinf.c,v 1.1
0 1999/07/18 17:38:23
momjian Exp $ */
/* $Id: isinf.c,v 1.1
1 1999/07/18 20:43:12
momjian Exp $ */
#include <math.h>
#include "config.h"
#ifdef NOT_USED
#if HAVE_FPCLASS
#if HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#if HAVE_FP_CLASS_H
#include <fp_class.h>
#endif
int
isinf
(
double
d
)
{
...
...
@@ -29,6 +23,12 @@ isinf(double d)
return
0
;
}
#else
#if defined(HAVE_FP_CLASS) || defined(HAVE_FP_CLASS_D)
#if HAVE_FP_CLASS_H
#include <fp_class.h>
#endif
int
isinf
(
x
)
double
x
;
...
...
@@ -49,3 +49,19 @@ double x;
}
#endif
#endif
#if defined(HAVE_CLASS)
int
isinf
(
double
x
)
{
int
fpclass
=
class
(
x
);
if
(
fpclass
==
FP_PLUS_INF
)
return
1
;
if
(
fpclass
==
FP_MINUS_INF
)
return
-
1
;
return
0
;
}
#endif
src/configure.in
浏览文件 @
7badb1e7
...
...
@@ -581,6 +581,7 @@ AC_CHECK_HEADERS(crypt.h)
AC_CHECK_HEADERS(dld.h)
AC_CHECK_HEADERS(endian.h)
AC_CHECK_HEADERS(float.h)
AC_CHECK_HEADERS(fp_class.h)
AC_CHECK_HEADERS(history.h)
AC_CHECK_HEADERS(ieeefp.h)
AC_CHECK_HEADERS(limits.h)
...
...
@@ -665,6 +666,7 @@ AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(memmove sigsetjmp sysconf)
AC_CHECK_FUNCS(sigprocmask waitpid setsid fcvt)
AC_CHECK_FUNCS(fpclass fp_class fp_class_d class)
dnl We use our snprintf.c emulation if either snprintf() or vsnprintf()
dnl is missing. Yes, there are machines that have only one.
dnl We may also decide to use snprintf.c if snprintf() is present but does
...
...
@@ -714,6 +716,11 @@ AC_CHECK_FUNC(inet_aton,
AC_DEFINE(HAVE_INET_ATON),
INET_ATON='inet_aton.o')
AC_SUBST(INET_ATON)
AC_CHECK_FUNC(strerror,
AC_DEFINE(HAVE_STRERROR),
[STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'])
AC_SUBST(STRERROR)
AC_SUBST(STRERROR2)
AC_CHECK_FUNC(strdup,
AC_DEFINE(HAVE_STRDUP),
STRDUP='../../utils/strdup.o')
...
...
src/include/config.h.in
浏览文件 @
7badb1e7
...
...
@@ -303,10 +303,21 @@
/* Set to 1 if you have snprintf() */
#undef HAVE_SNPRINTF
/* Set to 1 if you have strerror() */
#undef HAVE_STRERROR
/* Set to 1 if you have vsnprintf() */
#undef HAVE_VSNPRINTF
/* Set to 1 if you have isinf() */
/*
* Set to 1 if you have isinf().
* These are all realated to port/isinf.c
*/
#undef HAVE_FPCLASS
#undef HAVE_FP_CLASS
#undef HAVE_FP_CLASS_H
#undef HAVE_FP_CLASS_D
#undef HAVE_CLASS
#undef HAVE_ISINF
#ifndef HAVE_ISINF
int isinf(double x);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录