summaryrefslogtreecommitdiffstats
path: root/dln.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-07 15:49:37 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-07 15:49:37 +0000
commitc9e5e4798fffe7e8da8ac1a13e7aa3c4379ab6a9 (patch)
treef484706dbbe24fd9cf7f4ea64a974328a291ea78 /dln.c
parente7520fc4cdc1fd84a09f398f173e5742062dcd3c (diff)
downloadruby-c9e5e4798fffe7e8da8ac1a13e7aa3c4379ab6a9.tar.gz
ruby-c9e5e4798fffe7e8da8ac1a13e7aa3c4379ab6a9.tar.xz
ruby-c9e5e4798fffe7e8da8ac1a13e7aa3c4379ab6a9.zip
2000-06-08
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dln.c b/dln.c
index 90dcc9042..c98be1b23 100644
--- a/dln.c
+++ b/dln.c
@@ -71,7 +71,7 @@ char *getenv();
int eaccess();
-#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(__CYGWIN32__) && !defined(_AIX)
+#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX)
/* dynamic load with dlopen() */
# define USE_DLN_DLOPEN
#endif
@@ -1103,7 +1103,7 @@ dln_sym(name)
#endif
-#ifdef _WIN32
+#if defined _WIN32 && !defined __CYGWIN__
#include <windows.h>
#endif
@@ -1135,7 +1135,7 @@ dln_strerror()
return (char*)dlerror();
#endif
-#ifdef _WIN32
+#if defined _WIN32 && !defined __CYGWIN__
static char message[1024];
int error = GetLastError();
char *p = message;
@@ -1210,7 +1210,7 @@ void
dln_load(file)
const char *file;
{
-#ifdef _WIN32
+#if defined _WIN32 && !defined __CYGWIN__
HINSTANCE handle;
char winfile[MAXPATHLEN];
void (*init_fct)();