mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in (FILE_COUNT): Removed. (win32.c defines it in itself.)
(FILE_READPTR): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bf251d8a3c
commit
bf6279bc2b
2 changed files with 5 additions and 40 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Feb 18 12:06:39 2014 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* configure.in (FILE_COUNT): Removed. (win32.c defines it in itself.)
|
||||||
|
(FILE_READPTR): Ditto.
|
||||||
|
|
||||||
Tue Feb 18 09:35:44 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
Tue Feb 18 09:35:44 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
* test/test/psych/test_string.rb: remove unused variables.
|
* test/test/psych/test_string.rb: remove unused variables.
|
||||||
|
|
40
configure.in
40
configure.in
|
@ -2317,46 +2317,6 @@ else
|
||||||
AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
|
AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# win32.c still use this. Don't remove it.
|
|
||||||
test "$rb_cv_fcnt" = "not found" && rb_cv_fcnt="not found (OK if using GNU libc)"
|
|
||||||
AC_CACHE_CHECK([read count field in FILE structures], rb_cv_fcnt,
|
|
||||||
[rb_cv_fcnt="not found (OK if using GNU libc)"
|
|
||||||
for fcnt in dnl
|
|
||||||
_cnt dnl
|
|
||||||
__cnt dnl
|
|
||||||
_r dnl
|
|
||||||
readCount dnl
|
|
||||||
_rcount dnl for emx0.9c
|
|
||||||
; do
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
],
|
|
||||||
[FILE *f = stdin; f->$fcnt = 0;],
|
|
||||||
[rb_cv_fcnt="$fcnt"; break])
|
|
||||||
done])
|
|
||||||
AS_CASE("$rb_cv_fcnt",
|
|
||||||
["not found"*], [rb_cv_fcnt="not found"],
|
|
||||||
[AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt)])
|
|
||||||
|
|
||||||
# win32.c still use this. Don't remove it.
|
|
||||||
AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr,
|
|
||||||
[for frptr in dnl
|
|
||||||
_IO_read_ptr dnl
|
|
||||||
_ptr dnl
|
|
||||||
__ptr dnl
|
|
||||||
bufpos dnl
|
|
||||||
_p dnl
|
|
||||||
__bufpos dnl
|
|
||||||
; do
|
|
||||||
AC_TRY_COMPILE([#include <stdio.h>
|
|
||||||
],
|
|
||||||
[FILE *f = stdin; char buf[256]; f->$frptr = buf;],
|
|
||||||
rb_cv_frptr="$frptr"; break,
|
|
||||||
rb_cv_frptr="not found")
|
|
||||||
done])
|
|
||||||
if test "$rb_cv_frptr" != "not found"; then
|
|
||||||
AC_DEFINE_UNQUOTED(FILE_READPTR, $rb_cv_frptr)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x"$ac_cv_func_gettimeofday" != xyes; then
|
if test x"$ac_cv_func_gettimeofday" != xyes; then
|
||||||
AC_MSG_ERROR(gettimeofday() must exist)
|
AC_MSG_ERROR(gettimeofday() must exist)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue