Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf88a058

Browse files
committed
Assume that we have rint().
Windows has this since _MSC_VER >= 1200, and so do all other liveplatforms according to the buildfarm, so remove the configure probeand src/port/ substitution.This is part of a series of commits to get rid of no-longer-relevantconfigure checks and dead src/port/ code. I'm committing them separatelyto make it easier to back out individual changes if they prove lessportable than I expect.Discussion:https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
1 parent1200d71 commitf88a058

File tree

7 files changed

+0
-121
lines changed

7 files changed

+0
-121
lines changed

‎configure

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15628,19 +15628,6 @@ esac
1562815628

1562915629
fi
1563015630

15631-
ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
15632-
if test "x$ac_cv_func_rint" = xyes; then :
15633-
$as_echo "#define HAVE_RINT 1" >>confdefs.h
15634-
15635-
else
15636-
case " $LIBOBJS " in
15637-
*" rint.$ac_objext "* ) ;;
15638-
*) LIBOBJS="$LIBOBJS rint.$ac_objext"
15639-
;;
15640-
esac
15641-
15642-
fi
15643-
1564415631
ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
1564515632
if test "x$ac_cv_func_srandom" = xyes; then :
1564615633
$as_echo "#define HAVE_SRANDOM 1" >>confdefs.h

‎configure.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,6 @@ AC_REPLACE_FUNCS(m4_normalize([
17071707
pread
17081708
pwrite
17091709
random
1710-
rint
17111710
srandom
17121711
strlcat
17131712
strlcpy

‎src/include/pg_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,6 @@
451451
/* Define to 1 if you have the `readlink' function. */
452452
#undef HAVE_READLINK
453453

454-
/* Define to 1 if you have the `rint' function. */
455-
#undef HAVE_RINT
456-
457454
/* Define to 1 if you have the global variable
458455
'rl_completion_append_character'. */
459456
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER

‎src/include/port.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@ extern float pg_strtof(const char *nptr, char **endptr);
385385
externchar*mkdtemp(char*path);
386386
#endif
387387

388-
#ifndefHAVE_RINT
389-
externdoublerint(doublex);
390-
#endif
391-
392388
#ifndefHAVE_INET_ATON
393389
#include<netinet/in.h>
394390
#include<arpa/inet.h>

‎src/port/rint.c

Lines changed: 0 additions & 97 deletions
This file was deleted.

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ sub mkvcbuild
104104
sprompt.c strerror.c tar.c thread.c
105105
win32env.c win32error.c win32security.c win32setlocale.c);
106106

107-
push(@pgportfiles,'rint.c')if ($vsVersion <'12.00');
108-
109107
push(@pgportfiles,'strtof.c')if ($vsVersion <'14.00');
110108

111109
if ($vsVersion >='9.00')

‎src/tools/msvc/Solution.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ sub GenerateFiles
321321
HAVE_READLINE_HISTORY_H=>undef,
322322
HAVE_READLINE_READLINE_H=>undef,
323323
HAVE_READLINK=>undef,
324-
HAVE_RINT=> 1,
325324
HAVE_RL_COMPLETION_APPEND_CHARACTER=>undef,
326325
HAVE_RL_COMPLETION_MATCHES=>undef,
327326
HAVE_RL_COMPLETION_SUPPRESS_QUOTE=>undef,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp