зеркало из https://github.com/github/ruby.git
* complex.c: use "__sun" instead of "__sun__" to detect SunOS.
* math.c: ditto. * hash.c: ditto. * atomic.h: ditto. * ext/io/wait/wait.c: ditto. [ruby-dev:44693] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b317a4cd28
Коммит
2bb5441808
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,17 @@
|
|||
Mon Oct 24 23:55:31 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* complex.c: use "__sun" instead of "__sun__" to detect SunOS.
|
||||
|
||||
* math.c: ditto.
|
||||
|
||||
* hash.c: ditto.
|
||||
|
||||
* atomic.h: ditto.
|
||||
|
||||
* ext/io/wait/wait.c: ditto.
|
||||
|
||||
[ruby-dev:44693]
|
||||
|
||||
Mon Oct 24 22:45:37 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c: use "__sun" instead of "sun" to detect SunOS.
|
||||
|
|
2
atomic.h
2
atomic.h
|
@ -42,7 +42,7 @@ typedef unsigned int rb_atomic_t; /* Anything OK */
|
|||
# define ATOMIC_OR(var, val) __sync_or_and_fetch(&(var), (val))
|
||||
# define ATOMIC_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val))
|
||||
|
||||
#elif defined(__sun) || defined(__sun__)
|
||||
#elif defined(__sun)
|
||||
#include <atomic.h>
|
||||
typedef unsigned int rb_atomic_t;
|
||||
|
||||
|
|
|
@ -1173,7 +1173,7 @@ nucomp_eql_p(VALUE self, VALUE other)
|
|||
inline static VALUE
|
||||
f_signbit(VALUE x)
|
||||
{
|
||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun) && \
|
||||
!defined(signbit)
|
||||
extern int signbit(double);
|
||||
#endif
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "ruby/io.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#if defined(HAVE_UNISTD_H) && (defined(__sun) || defined(__sun__))
|
||||
#if defined(HAVE_UNISTD_H) && (defined(__sun))
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#if defined(HAVE_SYS_IOCTL_H)
|
||||
|
|
4
hash.c
4
hash.c
|
@ -2196,7 +2196,7 @@ rb_env_path_tainted(void)
|
|||
}
|
||||
|
||||
#if defined(_WIN32) || (defined(HAVE_SETENV) && defined(HAVE_UNSETENV))
|
||||
#elif defined __sun__
|
||||
#elif defined __sun
|
||||
static int
|
||||
in_origenv(const char *str)
|
||||
{
|
||||
|
@ -2284,7 +2284,7 @@ ruby_setenv(const char *name, const char *value)
|
|||
rb_sys_fail("unsetenv");
|
||||
#endif
|
||||
}
|
||||
#elif defined __sun__
|
||||
#elif defined __sun
|
||||
size_t len;
|
||||
char **env_ptr, *str;
|
||||
if (strchr(name, '=')) {
|
||||
|
|
2
math.c
2
math.c
|
@ -14,7 +14,7 @@
|
|||
#include <math.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
|
||||
#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun) && \
|
||||
!defined(signbit)
|
||||
extern int signbit(double);
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче