* missing.h: needs RUBY_EXTERN instead of extern for mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15195772ed
commit
1f4b40f449
@ -1,3 +1,7 @@
|
|||||||
|
Mon Nov 3 16:32:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* missing.h: needs RUBY_EXTERN instead of extern for mswin.
|
||||||
|
|
||||||
Mon Nov 3 13:01:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
Mon Nov 3 13:01:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more
|
* array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more
|
||||||
|
@ -38,57 +38,61 @@ struct timespec {
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef RUBY_EXTERN
|
||||||
|
#define RUBY_EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_ACOSH
|
#ifndef HAVE_ACOSH
|
||||||
extern double acosh(double);
|
RUBY_EXTERN double acosh(double);
|
||||||
extern double asinh(double);
|
RUBY_EXTERN double asinh(double);
|
||||||
extern double atanh(double);
|
RUBY_EXTERN double atanh(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_CRYPT
|
#ifndef HAVE_CRYPT
|
||||||
extern char *crypt(const char *, const char *);
|
RUBY_EXTERN char *crypt(const char *, const char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_DUP2
|
#ifndef HAVE_DUP2
|
||||||
extern int dup2(int, int);
|
RUBY_EXTERN int dup2(int, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_EACCESS
|
#ifndef HAVE_EACCESS
|
||||||
extern int eaccess(const char*, int);
|
RUBY_EXTERN int eaccess(const char*, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_FINITE
|
#ifndef HAVE_FINITE
|
||||||
extern int finite(double);
|
RUBY_EXTERN int finite(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_FLOCK
|
#ifndef HAVE_FLOCK
|
||||||
extern int flock(int, int);
|
RUBY_EXTERN int flock(int, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#ifndef HAVE_FREXP
|
#ifndef HAVE_FREXP
|
||||||
extern double frexp(double, int *);
|
RUBY_EXTERN double frexp(double, int *);
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_HYPOT
|
#ifndef HAVE_HYPOT
|
||||||
extern double hypot(double, double);
|
RUBY_EXTERN double hypot(double, double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_ERF
|
#ifndef HAVE_ERF
|
||||||
extern double erf(double);
|
RUBY_EXTERN double erf(double);
|
||||||
extern double erfc(double);
|
RUBY_EXTERN double erfc(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_TGAMMA
|
#ifndef HAVE_TGAMMA
|
||||||
extern double tgamma(double);
|
RUBY_EXTERN double tgamma(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_LGAMMA_R
|
#ifndef HAVE_LGAMMA_R
|
||||||
extern double lgamma_r(double, int *);
|
RUBY_EXTERN double lgamma_r(double, int *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_CBRT
|
#ifndef HAVE_CBRT
|
||||||
extern double cbrt(double);
|
RUBY_EXTERN double cbrt(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef isinf
|
#ifndef isinf
|
||||||
@ -96,62 +100,62 @@ extern double cbrt(double);
|
|||||||
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
||||||
# define isinf(x) (!finite(x) && !isnan(x))
|
# define isinf(x) (!finite(x) && !isnan(x))
|
||||||
# else
|
# else
|
||||||
extern int isinf(double);
|
RUBY_EXTERN int isinf(double);
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_ISNAN
|
#ifndef HAVE_ISNAN
|
||||||
extern int isnan(double);
|
RUBY_EXTERN int isnan(double);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#ifndef HAVE_MEMCMP
|
#ifndef HAVE_MEMCMP
|
||||||
extern int memcmp(const void *, const void *, size_t);
|
RUBY_EXTERN int memcmp(const void *, const void *, size_t);
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_MEMMOVE
|
#ifndef HAVE_MEMMOVE
|
||||||
extern void *memmove(void *, const void *, size_t);
|
RUBY_EXTERN void *memmove(void *, const void *, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#ifndef HAVE_MODF
|
#ifndef HAVE_MODF
|
||||||
extern double modf(double, double *);
|
RUBY_EXTERN double modf(double, double *);
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_STRCHR
|
#ifndef HAVE_STRCHR
|
||||||
extern char *strchr(const char *, int);
|
RUBY_EXTERN char *strchr(const char *, int);
|
||||||
extern char *strrchr(const char *, int);
|
RUBY_EXTERN char *strrchr(const char *, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRERROR
|
#ifndef HAVE_STRERROR
|
||||||
extern char *strerror(int);
|
RUBY_EXTERN char *strerror(int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRSTR
|
#ifndef HAVE_STRSTR
|
||||||
extern char *strstr(const char *, const char *);
|
RUBY_EXTERN char *strstr(const char *, const char *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#ifndef HAVE_STRTOL
|
#ifndef HAVE_STRTOL
|
||||||
extern long strtol(const char *, char **, int);
|
RUBY_EXTERN long strtol(const char *, char **, int);
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HAVE_VSNPRINTF
|
#ifndef HAVE_VSNPRINTF
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
extern int snprintf(char *, size_t n, char const *, ...);
|
RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...);
|
||||||
extern int vsnprintf(char *, size_t n, char const *, va_list);
|
RUBY_EXTERN int vsnprintf(char *, size_t n, char const *, va_list);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRLCPY
|
#ifndef HAVE_STRLCPY
|
||||||
extern size_t strlcpy(char *, const char*, size_t);
|
RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_STRLCAT
|
#ifndef HAVE_STRLCAT
|
||||||
extern size_t strlcat(char *, const char*, size_t);
|
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user