diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-24 16:11:53 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-24 16:11:53 +0000 |
| commit | 8f1dcfcb8f8b6e830d6ca9e701ba7e9fa0a03923 (patch) | |
| tree | e7b3d278948e91566dabddcee1571ca47ccda94b /dln.c | |
| parent | 17f1a329bcc4cf8b1733d2d18dfdc880f139a1d5 (diff) | |
| download | ruby-8f1dcfcb8f8b6e830d6ca9e701ba7e9fa0a03923.tar.gz ruby-8f1dcfcb8f8b6e830d6ca9e701ba7e9fa0a03923.tar.xz ruby-8f1dcfcb8f8b6e830d6ca9e701ba7e9fa0a03923.zip | |
* dln.c: devert and add the MAXPATHLEN definition on mswin32/mingw32.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
| -rw-r--r-- | dln.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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)(); |
