Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs

  to get rid of types which might not be defined yet.  [ruby-dev:26165]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 76bfad4f67ea4bdd52c812262b875ee756f78912 1 parent afa942c
Nobuyoshi Nakada nobu authored

Showing 3 changed files with 10 additions and 20 deletions. Show diff stats Hide diff stats

  1. +5 0 ChangeLog
  2. +5 2 configure.in
  3. +0 18 ruby.h
5 ChangeLog
... ... @@ -1,3 +1,8 @@
  1 +Sun May 15 18:56:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
  2 +
  3 + * configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
  4 + to get rid of types which might not be defined yet. [ruby-dev:26165]
  5 +
1 6 Sun May 15 14:35:46 2005 Tanaka Akira <akr@m17n.org>
2 7
3 8 * lib/pathname.rb (Pathname#unlink): unlink a symlink to a directory
7 configure.in
... ... @@ -1,7 +1,7 @@
1 1 dnl Process this file with autoconf to produce a configure script.
2 2 AC_INIT()
3 3
4   -AC_PREREQ(2.50)
  4 +AC_PREREQ(2.58)
5 5
6 6 AC_DEFUN(RUBY_MINGW32,
7 7 [case "$host_os" in
@@ -230,7 +230,10 @@ AC_CHECK_SIZEOF(float, 4)
230 230 AC_CHECK_SIZEOF(double, 8)
231 231 AC_CHECK_SIZEOF(time_t, 0)
232 232
233   -AC_CHECK_TYPES([pid_t, gid_t, uid_t])
  233 +for id in pid_t gid_t uid_t; do
  234 + AC_CHECK_TYPE($id, [typ=$id], [typ=int])
  235 + AC_DEFINE_UNQUOTED(rb_$id, $typ)
  236 +done
234 237
235 238 AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
236 239 [AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
18 ruby.h
@@ -76,24 +76,6 @@ extern "C" {
76 76 typedef unsigned long VALUE;
77 77 typedef unsigned long ID;
78 78
79   -#ifndef HAVE_PID_T
80   - typedef int rb_pid_t;
81   -#else
82   - typedef pid_t rb_pid_t;
83   -#endif
84   -
85   -#ifndef HAVE_GID_T
86   - typedef int rb_gid_t;
87   -#else
88   - typedef gid_t rb_gid_t;
89   -#endif
90   -
91   -#ifndef HAVE_UID_T
92   - typedef int rb_uid_t;
93   -#else
94   - typedef uid_t rb_uid_t;
95   -#endif
96   -
97 79 #ifdef __STDC__
98 80 # include <limits.h>
99 81 #else

0 comments on commit 76bfad4

Please sign in to comment.
Something went wrong with that request. Please try again.