Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0a160699
Commit
0a160699
authored
Jan 24, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert NEED_{RINT,CBRT,ISINF} to HAVE_* in prepration for configure...
parent
3ffd5694
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
40 deletions
+40
-40
src/backend/port/win32/nt.h
src/backend/port/win32/nt.h
+1
-1
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+25
-25
src/include/config.h
src/include/config.h
+14
-14
No files found.
src/backend/port/win32/nt.h
View file @
0a160699
...
...
@@ -26,7 +26,7 @@ struct sembuf
};
#define USE_POSIX_TIME
#
define NEED
_RINT
#
undef HAVE
_RINT
#define MAXHOSTNAMELEN 12
/* where is the official definition of this? */
#define MAXPATHLEN _MAX_PATH
/* in winsock.h */
...
...
src/backend/utils/adt/float.c
View file @
0a160699
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.
9 1997/01/18 17:36:02 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.
10 1997/01/24 18:17:06 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -68,28 +68,28 @@
extern
double
atof
(
const
char
*
p
);
#endif
#if
def NEED
_CBRT
#if
ndef HAVE
_CBRT
# define cbrt my_cbrt
static
double
cbrt
(
double
x
);
#else
/* NEED_CBRT */
# if !defined(next)
#else
# if !defined(next
step
)
extern
double
cbrt
(
double
x
);
# endif
#endif
/* NEED_CBRT */
#if
def NEED
_RINT
#define rint my_rint
static
double
rint
(
double
x
);
#else
/* NEED_RINT */
extern
double
rint
(
double
x
);
#endif
/* NEED_RINT */
#if
def NEED
_ISINF
#define isinf my_isinf
static
int
isinf
(
double
x
);
#else
/* NEED_ISINF */
extern
int
isinf
(
double
x
);
#endif
/* NEED_ISINF */
#endif
#if
ndef HAVE
_RINT
#
define rint my_rint
static
double
rint
(
double
x
);
#else
extern
double
rint
(
double
x
);
#endif
#if
ndef HAVE
_ISINF
#
define isinf my_isinf
static
int
isinf
(
double
x
);
#else
extern
int
isinf
(
double
x
);
#endif
#endif
/* ========== USER I/O ROUTINES ========== */
...
...
@@ -1125,7 +1125,7 @@ long float84ge(float64 arg1, float32 arg2)
/* From "fdlibm" @ netlib.att.com */
#if
def NEED
_RINT
#if
ndef HAVE
_RINT
/* @(#)s_rint.c 5.1 93/09/24 */
/*
...
...
@@ -1211,9 +1211,9 @@ static double rint(double x)
return
w
-
TWO52
[
sx
];
}
#endif
/*
NEED
_RINT */
#endif
/*
!HAVE
_RINT */
#if
def NEED
_CBRT
#if
ndef HAVE
_CBRT
static
double
...
...
@@ -1226,9 +1226,9 @@ double x;
return
(
isneg
?
-
tmpres
:
tmpres
);
}
#endif
/*
NEED
_CBRT */
#endif
/*
!HAVE
_CBRT */
#if
def NEED
_ISINF
#if
ndef HAVE
_ISINF
#if defined(aix)
#ifdef CLASS_CONFLICT
...
...
@@ -1318,4 +1318,4 @@ double d;
}
#endif
/* irix5 */
#endif
/*
NEED
_ISINF */
#endif
/*
!HAVE
_ISINF */
src/include/config.h
View file @
0a160699
...
...
@@ -16,7 +16,7 @@
# undef HAVE_TERMIOS_H
# define CLASS_CONFLICT
# define DISABLE_XOPEN_NLS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define NEED_UNION_SEMUN
# define NEED_SYS_SELECT_H
# define HAVE_TZSET
...
...
@@ -29,7 +29,7 @@
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define DISABLE_XOPEN_NLS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define HAS_LONG_LONG
# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
...
...
@@ -40,7 +40,7 @@
#if defined(BSD44_derived)
# define HAVE_LIMITS_H
# define USE_POSIX_TIME
# define
NEED
_CBRT
# define
HAVE
_CBRT
# define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET
# if defined(__mips__)
...
...
@@ -61,7 +61,7 @@
# endif
# define HAVE_LIMITS_H
# define USE_POSIX_TIME
# define
NEED
_CBRT
# define
HAVE
_CBRT
# define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
#endif
...
...
@@ -77,8 +77,8 @@
# define JMP_BUF
# define USE_POSIX_TIME
# define HAVE_TZSET
# define
NEED
_CBRT
# define
NEED
_RINT
# define
HAVE
_CBRT
# define
HAVE
_RINT
# define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET
typedef
struct
{
int
sem
[
4
];
}
slock_t
;
...
...
@@ -88,7 +88,7 @@
# define HAVE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define HAVE_TZSET
...
...
@@ -101,7 +101,7 @@
#if defined(irix5)
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define NO_EMPTY_STMTS
# define NO_VFORK
# define HAVE_TZSET
...
...
@@ -121,7 +121,7 @@
# define JMP_BUF
# define USE_POSIX_TIME
# define HAVE_TZSET
# define
NEED
_CBRT
# define
HAVE
_CBRT
# define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -160,7 +160,7 @@
# define HAVE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define USE_POSIX_TIME
...
...
@@ -179,7 +179,7 @@ typedef unsigned char slock_t;
#if defined(svr4)
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define NEED_RUSAGE
# define NO_EMPTY_STMTS
# define HAVE_TZSET
...
...
@@ -195,15 +195,15 @@ typedef unsigned char slock_t;
# define NOFILE 100
# define NEED_UNION_SEMUN
# define HAVE_TZSET
# define
NEED
_CBRT
# define
NEED
_ISINF
# define
HAVE
_CBRT
# define
HAVE
_ISINF
# ifndef MAXPATHLEN
# define MAXPATHLEN 250
# endif
#endif
/* WIN32 */
#if defined(ultrix4)
# define
NEED
_ISINF
# define
HAVE
_ISINF
# define USE_POSIX_TIME
# define NEED_UNION_SEMUN
# define NEED_STRDUP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment