summaryrefslogtreecommitdiff
path: root/ext/dl/dl.h
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-05 03:13:18 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-05 03:13:18 +0000
commit20e2c4cb365041c3672760f1ef829d870b7c2601 (patch)
tree9d5758c156c46adde39f3a3edb46c94e840292d9 /ext/dl/dl.h
parentd56a76a66406ce08d34ebadba7896b50fb0c8950 (diff)
* Use _WIN32 rather than checking for windows.h. Thanks Jon Forums!
[ruby-core:33977] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/dl.h')
-rw-r--r--ext/dl/dl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index 2fa330f925..2b3b1f827e 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -20,7 +20,7 @@
#define RTLD_NOW 0
#endif
#else
-# if defined(HAVE_WINDOWS_H)
+# if defined(_WIN32)
# include <windows.h>
# define dlopen(name,flag) ((void*)LoadLibrary(name))
# define dlerror() strerror(rb_w32_map_errno(GetLastError()))