mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
util.h: POSIX-noncompliant setenv
* include/ruby/util.h (setenv): remove POSIX-noncompliant definition with 2 arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0f48f2385
commit
b22b725c5d
3 changed files with 5 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 7 17:50:38 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/util.h (setenv): remove POSIX-noncompliant
|
||||
definition with 2 arguments.
|
||||
|
||||
Wed Sep 7 17:35:37 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* unicode/8.0.0/casefold.h, name2ctype.h, unicode/data/8.0.0:
|
||||
|
|
2
hash.c
2
hash.c
|
@ -3350,8 +3350,6 @@ ruby_setenv(const char *name, const char *value)
|
|||
invalid_envname(name);
|
||||
}
|
||||
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
|
||||
#undef setenv
|
||||
#undef unsetenv
|
||||
if (value) {
|
||||
if (setenv(name, value, 1))
|
||||
rb_sys_fail_str(rb_sprintf("setenv(%s)", name));
|
||||
|
|
|
@ -64,10 +64,6 @@ void ruby_qsort(void *, const size_t, const size_t,
|
|||
|
||||
void ruby_setenv(const char *, const char *);
|
||||
void ruby_unsetenv(const char *);
|
||||
#undef setenv
|
||||
#undef unsetenv
|
||||
#define setenv(name,val) ruby_setenv((name),(val))
|
||||
#define unsetenv(name,val) ruby_unsetenv(name)
|
||||
|
||||
char *ruby_strdup(const char *);
|
||||
#undef strdup
|
||||
|
|
Loading…
Reference in a new issue