mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* dln.c: devert and add the MAXPATHLEN definition on mswin32/mingw32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0dcbeda434
commit
a1250adef3
3 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 25 01:08:40 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* dln.c: devert and add the MAXPATHLEN definition on mswin32/mingw32.
|
||||
|
||||
Sun Nov 24 20:36:53 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* dln.c: move the MAXPATHLEN definition in front.
|
||||
|
|
12
dln.c
12
dln.c
|
@ -61,9 +61,6 @@ void *xrealloc();
|
|||
#ifdef HAVE_SYS_PARAM_H
|
||||
# include <sys/param.h>
|
||||
#endif
|
||||
#ifndef MAXPATHLEN
|
||||
# define MAXPATHLEN 1024
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
|
@ -355,6 +352,10 @@ sym_hash(hdrp, syms)
|
|||
return tbl;
|
||||
}
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
# define MAXPATHLEN 1024
|
||||
#endif
|
||||
|
||||
static int
|
||||
dln_init(prog)
|
||||
const char *prog;
|
||||
|
@ -1262,6 +1263,11 @@ dln_load(file)
|
|||
#endif
|
||||
|
||||
#if defined _WIN32 && !defined __CYGWIN__
|
||||
|
||||
#ifndef MAXPATHLEN
|
||||
# define MAXPATHLEN 1024
|
||||
#endif
|
||||
|
||||
HINSTANCE handle;
|
||||
char winfile[MAXPATHLEN];
|
||||
void (*init_fct)();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#define RUBY_VERSION "1.7.3"
|
||||
#define RUBY_RELEASE_DATE "2002-11-24"
|
||||
#define RUBY_RELEASE_DATE "2002-11-25"
|
||||
#define RUBY_VERSION_CODE 173
|
||||
#define RUBY_RELEASE_CODE 20021124
|
||||
#define RUBY_RELEASE_CODE 20021125
|
||||
|
|
Loading…
Add table
Reference in a new issue